Block with main table and "item" table
Permalink
I have a block which needs multiple items added to one instance. So i have created a list of items like:
Now i can use in my controller to handle a save but i cant save my items array according to the right block ID because i have to firstly create the items and only then call function, and only when that function is run i have an bID. So how to manage this?
<input name="items[]"></input>
Now i can use
public function save($args) {...}
parent::save($args);