Re: [fw-general] How to display validator specific error message in Zend_Form?

2009-02-05 Thread Deepak Shrestha
On Thu, Feb 5, 2009 at 10:08 PM, A.J. Brown wrote: > > > On Wed, Feb 4, 2009 at 9:44 PM, Deepak Shrestha wrote: >> >> Thanks. How about assigning specific error message to each validator? >> > > Use the options array (3rd parameter). The key should be 'messages' and the > value is another array

Re: [fw-general] How to display validator specific error message in Zend_Form?

2009-02-04 Thread Deepak Shrestha
>> What I actually wanted to do is: >> * >> Empty string will be checked first and shown error message ignoring >> other validators. So if the string is empty show the error message for >> empty string validator and exit from validator chain ignoring other >>

Re: [fw-general] How to display validator specific error message in Zend_Form?

2009-02-04 Thread A.J. Brown
Hi Deepak, On Wed, Feb 4, 2009 at 8:57 AM, Deepak Shrestha wrote: > > What I actually wanted to do is: > * > Empty string will be checked first and shown error message ignoring > other validators. So if the string is empty show the error message for > emp

[fw-general] How to display validator specific error message in Zend_Form?

2009-02-04 Thread Deepak Shrestha
Hi, I have text element in the form with two validators +--- $mytext= New Zend_Form_Element_Text('mytext'); $mytext->setLabel('Enter Text:'); $mytext->setAttrib('size', '40'); $mytext->setRequired(true)