Yii2. I have a view of the counterparty card (user). In addition to the table itself, which stores customer data, it has two related tables that store:
a) information about events (history of working with him) (event);
b) a list of contact persons of the counterparty (person).
I want to use several yii\bootstrap\Modal; Those. I need one button to open the add / edit event form in a modal window, another open a contact person add / edit form in another modal window, a third button open a modal window for editing information about a catfish partner.
There are blocks
<?php Modal::begin([ .... echo ั
ั
ั
ั
ั
ั
ั
ั
ั
ั
ั
ั
ั
ั
ั
ั
ั
ั
ั
; Modal::end(); ?> insert <?= $form->field($model,'... I do not want to insert instead of "echo xxxx" because the fields in the table can be added and we must remember that you have modal windows and then in them edit, and itโs not good either. I need something like a render to make something like
<?php Modal::begin([ .... render('_form', ['model' => $model]); - event Modal::end(); ?> <?php Modal::begin([ .... render('_form', ['model' => $model]); - person Modal::end(); ?> <?php Modal::begin([ .... render('_form', ['model' => $model]); - user Modal::end(); ?> Can you please tell me how to connect these types?