Yii
- 54 ответа
- 0 вопросов
57
Вклад в тег
$form = ActiveForm::begin([
'id' => 'login-form',
'options' => ['class' => 'form-horizontal'],
'fieldConfig' => [
'template' => '{label}<div class="col-sm-10">{input}</div><div class="col-sm-10">{error}</div>',
'labelOptions' => ['class' => 'col-sm-2 control-label'],
],
]);