I have problem with generate form (i’m newbe). At table header I want to show “Performer” title and additional columns depends on the number of portals in the database (if i had 3 portals in DB, the table must have 4 columns [performer, portal 1, portal 2, portal 3]). Aand generate rows depends on number performers in db and at first column want to show name.
So if someone fill fields “portal 1” and “portal 2” for example in first row, the query seems to be look like (NULL, ‘1’, ‘1’, ‘11’), (NULL, ‘1’, ‘2’, ‘11’).
And for second row (performer_id =2) if someone fill only last field (portal 3), the query seems to be look like (NULL, ‘2’, ‘3’, ‘99’).
One field filled, generates insert to database with parameters (performer_id, portal_id, "and data from input").
And i have no idea, how to start with something like this and how to generate a form as I wrote above, based on records from the database (portals columns).
What you are trying to build isn’t trivial and you seem to be unfamiliar with the basics of Yii. The best course of action might be to spend a week or two working through the guide: http://www.yiiframework.com/doc-2.0/guide-index.html