On 9/8/2009 9:08 PM, hmvrulz wrote:
>
> i am using many models on the same controller. i have to save the data to the
> db.
>
> this is the view.
>
> http://pastebin.com/mbbb68f
>
> as u can see am using many models like [B]Rating[/B], [B]Timing[/B]
> [B]Review[/B] etc. This is just a small part of the form.
>
> In the controller i have added a add() method like this. which is kinda
> crooked code :(  is there a better way of saving these ?
>
> http://pastebin.com/d9d90df3
>    
teknoid has enlighten me about a similar issue.

http://teknoid.wordpress.com/2008/08/01/practical-use-of-saveall-part-1-working-with-multiple-models/
http://teknoid.wordpress.com/index.php?s=saveall

I believe you're looking for something like it.

HTH.

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