Using Zend_Filter_Input is it possible to specify the same error for all
errors on a validator with several errors?

tried 'messages' => 'value must be between 5 and 128', but only the first of
the templates got replaced, i want to replace both

of course you could define both constants to the same message, but it's lot
easier just setting all errors to one message with 'messages' => 'same error
for all errors'

$validators = array(
    'description' => array(
        new Zend_Validate_StringLength(5, 128),
        'messages' => 'Must be between 5 and 128'
    ),

Note: StringLength has two error messages
-- 
View this message in context: 
http://www.nabble.com/Zend_Filter_Input---replace-all-errors-with-a-single-error-in-validator--tp14600224s16154p14600224.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to