Venez baraguiner avec la communauté !
Vous n'êtes pas identifié.
Bonjour à tous le monde,
Voila je me pose une question sur les validateurs personnalisés.
$this->validatorSchema->setPostValidator(new sfValidatorAnd(
array(
new sfValidatorSchemaCompare(
'pass', sfValidatorSchemaCompare::EQUAL, 'repassword',
array(),
array('invalid' => "The password and password confirmation are different")
),
new sfAnotherValidatorSchemaReCaptcha($this, 'captcha'),
new sfValidatorCallback(array('callback'=> array($this, 'checkAvailability')))
))
);Quand on regarde la méthode checkAvailability, elle attends 2 parametres, comment elle les récupère???
Hors ligne