Complex Forms with Multiple Models

Hello Everybody,

I’m using Yii2 and here I want to know, how to store multiple model values from single form? For example I have ‘tbl_user’ and ‘tbl_location’ the tbl_location have user_id as FK. Now in controller action I’m loading only the User model. From that i have to store the Location model values. Please any one help me?

Read this topic

Documentation

If the user can have many locations : https://github.com/wbraganca/yii2-dynamicform

Hope it will help you ;)

Thanks. You saved my time/