I’ve been running into other folks that have been having trouble with symfony 1.1 on Twitter. One common stumbling block is sfValidatorSchemaCompare.
I’m just gonna paste code here, because I’m now a week behind schedule working with symfony 1.1 because I didn’t pad time for having to read a good chunk of the source of symfony 1.1:
<?php
$this->validatorSchema->setPostValidator(new sfValidatorAnd(array(
new sfValidatorSchemaCompare('email', '==', 'email_confirm',
array(),
array('invalid' => 'The email adresses must match')
),
new sfValidatorSchemaCompare('password', '==', 'password_confirm',
array(),
array('invalid' => 'The passwords must match')
),
)));
?>
Anyway it’s been cool getting props for posting code like the above. 😀
Good luck!
Leave a Reply