Make sure you are using Cake 1.2
var $validate = array(
'categoryName' => array(
'too_short' => array('rule' => array('minLength', 1),
'message'=>'Category Name cannot be empty'),
'unique' => array('rule' => array('isUnique'), 'message'=>'That
Category Name is not available'),
'required' => array('rule' => array('minLength', 1), 'required'
=>
true, 'on' => 'create', 'message'=>'Category Name is required'),
),
);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---