Hi
I'm trying to create a validator that validates a user and its password..
How do I pass two arguements to a validator??
I was thinking something like:
new LoginValidator(array(
'message' => 'Login was unsuccessful',
'field' => array('user', 'passwd')
))
or
new LoginValidator(array(
'message' => 'Login was unsuccessful'),
$user,$passwd
))
How do I read these values in the Validator class.. and is there a better way??