A
A
AR2017-01-29 14:37:28
Yii
AR, 2017-01-29 14:37:28

Yii2: ActiveForm how to work with two models?

Good afternoon.
There is a form in which there are:
1. inputs, the data from which falls into the record in table1.
2. checkboxes, when selected (or not selected), records should be created (or deleted) in table2.
I really can't figure out how to do it.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Solomaha, 2017-01-29
@amio

Alternatively www.yiiframework.com/doc-2.0/guide-input-multiple-...

D
Dmitry, 2017-01-29
@slo_nik

Good afternoon.
Articles from official documentation:
First
Second

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question