Ah, I see how it works now.  Thank you!

On Mar 22, 8:00 pm, cricket <zijn.digi...@gmail.com> wrote:
> A form can only post to a single URL. What you want to do is ensure
> that a Model->read() grabs the associated data. Then specify the
> fields as Company.whatever & Contact.whatever. In the controller, use
> either saveAll($this->data) or save to each model separately.
>
> On Mar 22, 5:09 pm, Gillian <gillian....@gmail.com> wrote:
>
> > Hi.  I've got a form here with two levels of associated models.
> > Basically, it goes like this:
>
> > Company
> > ->Company information tables
> > ->Contact table
> > -->Contact information tables
>
> > Getting the form to post to the models that belong directly to the
> > company was simple enough.  What I can't figure out how to do is how
> > to get it to post to the models that belong to the contact model (that
> > belongs to the company model).  It all needs to be done in a single
> > form, so splitting it up isn't really an option.  Can anyone give me
> > any pointers?  Thank you!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to