Hello folks,

I've been trying to set default error messages on my forms so that I
don't have to "repeat myself" setting them field by field - for
example, setting global "required" and "invalid" messages. Looking at
the API, this seems simple enough by calling the setMessages() method
on my form's validatorSchema, so I've tried this inside my form's
configure() method:


    $this->validatorSchema->setMessages(array(
      'required' => 'This field is required.',
      'invalid' => 'The information you entered is invalid.'
    ));

However, to my surprise, it does nothing! No errors/warnings/
exceptions, yet nothing actually happens and the same old "Required."
and "Invalid." messages pop up on my form.

Is there something incredibly dumb I'm missing here or is this just a
bug in sf 1.4?

Thanks for your time!

Best Regards,

Thiago Campezzi
[email protected]

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to