OK, newbie question here.
I used doctrine to build my forms. I then used the non-base class to
customize my forms since I don't need every single field in the form
(all I'm doing is unsetting the fields I don't want). In the
BaseContactForm class, it is setting all the fields as well as
$this->setValidators(....). But it doesn't seem as if the validators are
doing anything. One field in specific is the email field.
In the setValidators function, it is set as:
'email' => new sfValidatorEmail(array('max_length' => 255,
'required' => false))
I figured that since it is calling sfValidatorEmail, it would validate
the input as being in email format, but it isn't.
Am I missing something? What do I have to do in my action to check
against the validators?
Thanks
--
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.