Value of field username must be != 'admin' and 'administrator'. Is it
possible to do using some validator ?
I have tried:
new sfValidatorSchemaCompare('username',
sfValidatorSchemaCompare::EQUAL,
"admin", array(), array('invalid' => 'Error.')),
but it doesn't work because "admin" isn't field but value :/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---