Hi,

my email field has this rules:

'ben_email' => array(
            'required' => array('rule' => 'notEmpty', 'message' =>
'EmptyEmail'),
            'email' => array('rule' => array('email', true), 'message'
=> 'SyntaxEmail'),
            'unique' => array('rule' => 'isUnique', 'message' =>
'EmailNotUnique')
        ),

But if I leave it empty it says that "EmailNotUnique" Error. But I
want to see the "EmptyEmail" and only when we have a given email and
its correct, I want to proof for "isUnique"

What I am doing wrong here?

PS: when I type in wrong syntax I get the right validation message of
"SyntaxEmail".

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to