Re: [fw-general] custom validation error messages in ZF >= 1.8

2009-12-02 Thread Ryan Lange
It appears I was using an older version of ZF (1.9.1, specifically). This issue was apparently fixed in v1.9.3 (< http://framework.zend.com/issues/browse/ZF-7034>). Silly me. On Tue, Dec 1, 2009 at 11:14 AM, Ryan Lange wrote: > It looks like Zend_Filter_Input, for some reason, automatically run

Re: [fw-general] custom validation error messages in ZF >= 1.8

2009-12-01 Thread Ryan Lange
It looks like Zend_Filter_Input, for some reason, automatically runs a NotEmpty validator on every field. The message you're seeing is Zend_Filter_Input's NOT_EMPTY_MESSAGE. Setting the ALLOW_EMPTY meta command will get rid of it, but, of course, won't run your own NotEmpty validator. I haven't f

[fw-general] custom validation error messages in ZF >= 1.8

2009-08-20 Thread David Mintz
I could use some help figuring out how to override the default validation error messages with my own. Consider this snippet, based on the example in the docs: $validators = array( 'month' => array( 'NotEmpty', 'Digits', 'messages' => array( 0 =>'my cust