It's actually very easy.  You can use the exact same form view as your
add method, however you need to make sure that this id of the data is
included.  For example, if its.a post do this:

<?php e($form->create('Post'));?>
<?php e($form->input('id'));?>

Cakephp will now recognbise this is an edit form and not an add form.

Tane


On 4/2/07, christianandradet <[EMAIL PROTECTED]> wrote:
>
> hi, how do i tell cakephp that i want to make an update not an insert,
> could you explain me the difference please. I do not know how this
> works.
> Thanks
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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