On Mar 2, 9:49 am, Ernesto <[email protected]> wrote:
> Is there any way (using ajax perhaps?) to let user insert an order
> using a single form?

You can create combined forms easily with FormHelper. Just use field
names like 'Item.0.name', 'Item.1.name', and so on to add multiple
items to an order form. Then you can use saveAll to save the order and
the associated items (and possibly customer) in one shot.

Regarding ajax, you can submit forms using ajax as well, but the form
will still need to be structured as I described above if you want to
save everything at once on one form.
--~--~---------~--~----~------------~-------~--~----~
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