Created
March 10, 2014 12:40
-
-
Save ricardofiorani/9464290 to your computer and use it in GitHub Desktop.
How to add a custom validator ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*@var $this myCustomInputFilter extends InputFilter*/ | |
/* Cnpj */ | |
$this->add([ | |
'type' => 'Zend\InputFilter\InputFilter', | |
'vCnpj' => [ | |
'name' => 'vCnpj', | |
'required' => true, | |
], | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment