<?= $form->field($model, 'price5', ['options' => ['class' => 'col-sm-6']])->textInput()->label('价格5') ?> //写在field里面会追加到Input父级
<?= $form->field($model, 'price5')->textInput([class' => 'col-sm-6'])->label('价格5') ?> //写在textInput会追加Input
<?= $form->field($model, 'price5', ['options' => ['class' => 'col-sm-6']])->textInput()->label('价格5') ?> //写在field里面会追加到Input父级
<?= $form->field($model, 'price5')->textInput([class' => 'col-sm-6'])->label('价格5') ?> //写在textInput会追加Input