Have you tried specifying the rule as an array as per the docs?
http://manual.cakephp.org/view/141/email
...
'rule' => array('email', true)
....
On Jul 4, 10:48 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> is try to validate an emailadres, my fieldname is 'email'.
>
> The code looks like this:
>
> var $validate = array(
> 'email' => array(
> 'rule' => 'email',
> 'message' => 'Please enter valid emailadres'
> )
> );
>
> I doesn't trigger an error, not when left blank, or entering 'sldkjf'.
>
> What's my problem?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---