you should always use the full array syntax and also add last=>true to
every rule.

example:
'email' => array(
                        'email' => array(
                                'rule' => array('email', true),
                                'message' => 'valErrInvalidEmail',
                                'last' => true
                        ),
                        'unique' => array(
                                'rule' => array('isUnique'),
                                'message' => 'valErrEmailExists',
                                'last' => true
                        ),
                ),


On 12 Nov., 15:10, heohni <[email protected]>
wrote:
> What do you mean?
>
>  'ben_email' => array(
>             'required' => array('rule' => 'notEmpty', 'message' =>
> 'EmptyEmail','required'=> true),
>             'email' => array('rule' => array('email', true), 'message'
> => 'SyntaxEmail'),
>             'unique' => array('rule' => 'isUnique', 'message' =>
> 'EmailNotUnique'),
>             'last' => true
>         ),
>
> with this and a blank email field, I get the 'SyntaxEmail' error
> message.
>
> I don't get this into my head...
>
> Password is solved, btw.
> Just the email check is a nightmare...

-- 
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