There are two tables:
poducts [id, name, etc..] and specs [id, product_id, spec_name, spec_value],
I’m using a form to edit the product (/products/edit/332 for example)
In the form i wan to add (it’s associated and i can access it in the view) the specs. which are a list of records from the specs table.
is it possible to create the specs as inputs in the same form?
also, i would like to enable the feature of “add new spec”.
thanks
For saving related model data, you can use
saveAll:And your inputs in Product form:
If you need more inputs, just increase the 0 value.
More information: http://book.cakephp.org/2.0/en/models/saving-your-data.html