Answer the question
In order to leave comments, you need to log in
How to correctly load a repeating model in yii2?
Good day.
There is a model that is duplicated many times, in my case it is a person's name + phone number.
How to load and process correctly in one form .
<? for ($i = 1; $i <= 5; $i++) {
echo html::textInput('ProjectContact[text'.$i.']','');
echo html::textInput('ProjectContact[name'.$i.']','');
} ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question