On Fri, Jun 12, 2009 at 7:43 PM, Jon Chin<[email protected]> wrote:
> It's taken me a little bit to track this down.  The problem is that the
> model's $this->id is not set.  How can I make it so the model has that?

Did you supply a hidden field with the ID? You need that if it's an edit form.

echo $form->create('User', array('action' => 'edit'));
echo $form->hidden('id');

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to