On 29/01/2008, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote:
>
>
> Currently, you *can* pull your validator object and set the messages:
>
> $notEmpty = $element->getValidator('NotEmpty');
> $notEmpty->setMessages($messages);
I've figured it out a couple minutes ago.
It works but it is slightly inconvenient.
Additionally, if you are using Zend_Translate and pass a
> Zend_Translate_Adapter into your form or element, the Errors decorator
> will use the error codes as message keys for translation.
Where I can find examples of this method?
Maybe it will be good idea if you put this in Zend_Form
documentation/examples?
Don't forget about non English sites and programmers ;)
> This won't work currently, but I've marked it in my TODO as an an
> improvement. It will work by passing a 'messages' key to the validator
> options, with a value of an associative array of code/message pairs.
Will it be available in official ZF 1.5 release?