Hi,
var $validate = array(
'ben_name' => array(
'required' => array('rule' => 'notEmpty', 'message' =>
'EmptyName')
),
'ben_email' => array(
'required' => array('rule' => 'notEmpty', 'message' =>
'EmptyEmail'),
'email' => array('rule' => array('email', true), 'message'
=> 'SyntaxEmail'),
'unique' => array('rule' => 'isUnique', 'message' =>
'EmailNotUnique'),
'last' => true
),
'ben_password' => array(
'required' => array('rule' => 'notEmpty', 'message' =>
'EmptyPassword')
)
);
When i leave 'ben_email' blank I get the message from the rule
'unique'.
I don't get the 'required' message which I should get, or?
The syntax Check works! Also the 'unique'.
But never the field 'ben_password' gets validated, this rule gets just
ignored.
What is wrong in my validation logic?
Any ideas?
--
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