just create a model for the settings table
In case user is not created with its settings (in the same add form),
do the following
in the User model put this
function afterSave($created) {
if($created)
{
$this->Setting->create();
$data['Setting']['user_id']=$this->id;
$this->Setting->save($data);
}
}
have a nice baking day
--~--~---------~--~----~------------~-------~--~----~
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 unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment