Hi! I am new to cakePHP, and have been trying to develop an application with it. While using cakePHP i created a model with these validation rules...
var $validate = array(
'name' => array(
'rule'=>array('minLength', 1),
'message'=>'Name is required' ),
'email' => array(
'rule'=>'email',
'message'=>'Must be a valid email address' )
);
the controller goes as
$this->inviteApply->set($this->data);
if($this->inviteApply->validates())
{
$this->inviteApply->save($this->data);
}
else
{
die();
}
Nw with this, according to all docuemntin and examples.. the data should be validated and errors should be reported... nthng like that seems to be happening...