Код: Выделить всё
<li>"имя" "цена за единицу"</li>
Код: Выделить всё
<?= $form->field($model, 'count'.['$i++'].') ->textInput();?>
Весь список обрамлен в
Код: Выделить всё
ActiveForm::begin(['id' => 'calc_form'])
Код: Выделить всё
public $count = [];
Код: Выделить всё
public function rules()
{
return [
['count', 'each', 'rule' => ['integer']],
];
}