Thank you!

I appreciate the help.

Now I have one less issue to work out ;)


Gareth McCumskey wrote:
> In your action, when you bind the submitted form to your form class 
> then the validators kick in. So process kinda is:
>
> - Action checks if form submitted, and it has not, so create instance 
> of form class with defaults and let view display form.
> - User interacts with form (and your client-side javascript validation 
> if any) and submits succesfully.
> - Action checks if form submitted, it has, so bind the post parameters 
> to an instance of the form class and validators will kick in to check.
> - If error on bind, return to view that displays errors otherwise if 
> no validation errors continue processing...
>
> For more info, look at the forms 
> book: http://www.symfony-project.org/forms/1_2/en/
>
>
> On Sun, Nov 29, 2009 at 5:04 AM, Paul Witschger 
> <[email protected] <mailto:[email protected]>> wrote:
>
>     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]
>     <mailto:[email protected]>.
>     To unsubscribe from this group, send email to
>     [email protected]
>     <mailto:symfony-users%[email protected]>.
>     For more options, visit this group at
>     http://groups.google.com/group/symfony-users?hl=en.
>
>
>
>
>
> -- 
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc
>
> --
>
> 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.

--

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