I have this validate in Model:
var $validate = array(
"module_data" => array(
"module_dataRule1" => array(
"rule" => array("minLength", 5),
"message" => "min"
),
"module_dataRule2" => array(
"rule" => array("maxLength", 10),
"message" => "max"
),
"required" => true,
"allowEmpty" => false
)
);
And I left empty form for module_data and I get no error.
What do I have wrong??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---