Say I have the following rule in my validation array in my Model
'val1' => array(
'rule' => 'val1',
'message' => 'some problem with username'
)
================================================
Now in function
function val1 ($value)
{
NOw I want to return 3 different error messages based on $value
["username"]... is it possible ?
Whenever I return false I always get 'some problem with username'
as the error message
}
Is there a facility in cakephp where I can specify multiple custom
error message for a single validation rule ??
Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---