Hi everybody
I wondered what's the difference between VALID_NOT_EMPTY and notEmpty?
In my model, when I use
'loginRule-1' => array(
'rule' => 'notEmpty',
'message' => 'This information is mandatory',
'last' => true
),
...
the rule doesn't work: independent whether I enter some information or
not, the error message is shown.
But when I use
'name' => array(
'loginRule-1' => array(
'rule' => VALID_NOT_EMPTY,
'message' => 'This information is mandatory',
'last' => true
),
...
then everything works as expected.
1) What's the difference?
2) Why does the notEmpty not work?
Thanks a lot
Josh
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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