Hello,
Im using Symfony 1.1-DEV.
I've set two validators for an email address field but I would like to
personalise the invalid and required messages of each one of the
validators Im using
( sfValidatorEmail and my custom uniqueuseremailValidator )
Any directions ?
Thanks
Joao
$this->setValidators(array(
'email' => new sfValidatorAnd(array(new
sfValidatorEmail(),
new
uniqueuseremailValidator()
)),
));
$this->validatorSchema['email']->setMessage('invalid', 'Invalid
email address.');
$this->validatorSchema['email']->setMessage('required', 'Please
insert an email address');
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---