Re: update with save

2007-04-02 Thread rtconner
Usually I do it in my controller.. $this->Post->id = $id; But yeah, that's about it, set the id first. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph

Re: update with save

2007-04-02 Thread digital spaghetti
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: create('Post'));?> input('id'));?> Cakephp will now recognbise this is an edit form and not an add form. Ta

update with save

2007-04-02 Thread christianandradet
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" grou