Hi there,
I am a relatively new user of the cakephp framework. I am creating an internal application for employees to be able to enter orders.
I currently use jquery to add rows to the "many" side of the order.
Eg. One order can have many products and notes.
So jquery is currently appending a table row in the following fashion.
Then when cake does the saveAll it creates a new order and then inserts the related products/notes.
I would like to have jquery actually dynamically add/delete these rows instead of just building the html form.
I am just lost with regards to how to configure the controller to handle these inserts. I'm thinking I need to "secure" an order number somehow to allow the products to be related but I really am just lost as to how the controller/view should work.
If anyone has any experience or better ideas I would love to hear them.
Thanks for any help anyone can provide.
Petrosky
Remember- It's nice to be important,
but it's important to be nice
I am a relatively new user of the cakephp framework. I am creating an internal application for employees to be able to enter orders.
I currently use jquery to add rows to the "many" side of the order.
Eg. One order can have many products and notes.
So jquery is currently appending a table row in the following fashion.
Code:
<input type="text" name="data[Product][1][Quantity]" /> Description Price etc...
<input type="text" name="data[Product][2][Quantity]" /> Description Price etc...
I would like to have jquery actually dynamically add/delete these rows instead of just building the html form.
I am just lost with regards to how to configure the controller to handle these inserts. I'm thinking I need to "secure" an order number somehow to allow the products to be related but I really am just lost as to how the controller/view should work.
If anyone has any experience or better ideas I would love to hear them.
Thanks for any help anyone can provide.
Petrosky
Remember- It's nice to be important,
but it's important to be nice