Yes, it might work, but i don't want to rename the input.
Is there any other way to do this?

Valentin

On Dec 25, 12:03 am, Tamas Amon <[EMAIL PROTECTED]> wrote:
> 2007. 12. 24, hétfő keltezéssel 13.12-kor Valentin Ceaprazaru ezt írta:
>
>
>
> > HI
> > i want to validate an email using the standard sfEmailValidator on a
> > custom named input. It works but the error message is not changed. How
> > can i change the error message?
>
> > this is the yml file that handles the validation:
> > methods:
> >   post: [author, content, author_email]
>
> > fillin:
> >   activate:   Yes
>
> > names:
> >   content:
> >     required: Yes
> >     required_msg: Trebuie sa introduci un comentariu.
> >   author:
> >     required: Yes
> >     required_msg: Cine esti?
> >   author_email:
> >     required: Yes
> >     required_msg: Cum te gasesc?
> >     validators: emailValidator
>
> > emailValidator:
> >   class: sfEmailValidator
> >   strict:       true
> >   author_email_error:  Custom message for email error
>
> email:
>   sfEmailValidator:
>     strict:       true
>     email_error: Hibás email-cím
>
> For me, this is working.
>
> --
> Tamas Amon <[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