Yii2. How can I create a dynamic form and then add all the data to the database? 
1 answer
Output the required fields in the block, using js to clone the block, clear the data, do the validation, add / correct the necessary attributes.
On the server we use the principle of tabular input. https://github.com/yiisoft/yii2/blob/master/docs/guide-ru/input-tabular-input.md
Similar question Dynamic addition of form fields yii2
|

if(Yii::$app->request->post("имя_фармы"))then create a new account (an example of his model) 4) Form a model throughgii- Vitaly Shebanits