Hi,
i have a form that i need to check whether 2 strings is equal and i'm using
a setPostvalidator to check duplicated fields in my DB. The 2 codes works
fine. But only one for time. not the both together.
here is the code:
class UsersForm extends BaseUsersForm {
(...)
public function
Hi,
use an sfValidatorAnd to combine the two post validators:
$this-mergePostValidator(new sfValidatorAnd(array(
new sfValidatorCallback(array('callback' = array($this,
'checkSOCIALSECURITY'))),
new sfValidatorSchemaCompare('senha', sfValidatorSchemaCompare::EQUAL,
Thanks
works fine!
Augusto Morais
2010/3/16 Lea Hänsenberger baerne...@gmail.com
Hi,
use an sfValidatorAnd to combine the two post validators:
$this-mergePostValidator(new sfValidatorAnd(array(
new sfValidatorCallback(array('callback' = array($this,
'checkSOCIALSECURITY'))),