the book covers all those simply questions:
http://book.cakephp.org/de/view/1032/Saving-Related-Model-Data-hasOne-hasMany-belongsTo


On 17 Apr., 07:53, John Eke <john....@gmail.com> wrote:
> Hi Guys,
>
> I was wondering if there was an easy way to combine models into the
> same form if they are related to eachother. For example say there were
> two models Library and Book, and they were related  (Library hasMany
> Book)
>
> After baking all models, controllers and forms, you get the ability to
> create a Library, and then create a Book where you select the Library
> ID.
>
> My question: is there an easy way to have BOTH adds in the same form?
> For instance when you try to create a Library, on the same form you
> get the ability to add as many books as possible. Then when you hit
> submit, the Library gets created along with as many books as you
> filled out.
>
> Thanks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to