Correct function name#1524
Conversation
|
The issue is that both or: This is outlined in the sentence that you may have overread: |
|
Yeah, one could potentially use On another note: the associative array in your examples will work, but since the arguments are later merged to be used with |
|
One rationale for keeping the docs as-is is that Leaving this open for the time being. |
|
I unfortunately don't know anything about module or application configuration as I'm using the component outside the framework – is it very different from using the $factory = new \Zend\InputFilter\Factory();
$inputFilter = $factory->createInputFilter(array(
'password' => [
'name' => 'password',
'required' => true,
'validators' => [
[
'name' => 'callback',
'options' => [
'callback' => function($value, $context, $option1) { return $option1; },
'callbackOptions' => [
false
],
],
],
],
],
));
$inputFilter->setData(['password' => 'p@s$w0rd']);
echo $inputFilter->isValid() ? "Valid form" : "Invalid form"; |
No description provided.