What I need must be quite common task but I can’t find the yii-way-of-doing-it. I searched all the forum and still can’t figure it out.
I have two models Set and Item. Set has many Items and also has a property set_name, Item belongs to Set and has a property item_name. What I need is the working form for creation and update Set and its Items. This form should be dynamic (adding new input fields for new item_name for new Items), it should be populated with data from model, and its input should be validated and saved with models.
How should model, controller and view look like? Where to put javascript to generate new input fields? How to connect this fields.
Thanks in advance,
Augustin, the newbyii