Right now this is what i have in the model,
var $validate = array( 'uemail' => VALID_EMAIL);
and this is what i have in the view
$html->tagErrorMsg('User/uemail', 'Email not valid.') ?>
The above works fine.
Now, how do i include the rule VALID_NOT_EMPTY along with VALID_EMAIL
and display an error if email field is left empty.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---