You always have to return true from Model::beforeSave for the save to
happen ;-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsub
Forgot to add:
Controller:
data))
{
//save data
if($this->Users->save($this->data))
{
//$this->redirect("/users");
}
}
}
}
?>
Vi
When I submit the form:
Array
(
[Users] => Array
(
[username] => test
[email] => t...@gmail.com
[password] => 098f6bcd4621d373cade4e832627b4f6
)
)
Debug info outputs what it should output:
users model
array(
'em