在ZF2,是有可能的形式的值数组传递到类似于回调验证回调过滤?
//Validator callback works
'callback' => function($value, $context){
//$context contains form values
}
//Need similar functionality for filter
'callback' => function($value, $context){
//$context will issue a warning because its not set
}
//I know the following filter works, but I dont know how to pass the form
'callback' => function($value, $context){
print_r($context); //Prints 'hello world'
},
'options' => array(
'callback_params' => array(
'context' => 'hello world' //I need this to be the form values
)
)