To update a table record simply use the model's save routine and make
sure what you are saving has its id value set for example

$this->data['Post']['id'] = $post_id;
$this->Post->save($this->data);

If the controller has an id argument - eg function update($id) - you
don't have to worry about setting the id value as CakePHP does this
automatically (see thread
http://groups.google.com/group/cake-php/browse_thread/thread/d3a07c79c9975c02)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to