标签:
use yii\widgets\ActiveForm;
<?php $form = ActiveForm::begin([
‘options‘ => [‘class‘ => ‘form-horizontal‘],
‘fieldConfig‘ => [
‘options‘=>[‘class‘=>‘control-group‘],
‘template‘ => "{label}<div class=\"controls\">{input}<span class=\"help-inline\">{error}</span></div>",
‘inputOptions‘=>[‘class‘=>‘input-xlarge‘],
‘labelOptions‘ => [‘class‘ => ‘control-label‘],
],
]); ?>
<?php ActiveForm::end(); ?>
标签:
原文地址:http://www.cnblogs.com/wangjinke/p/4711424.html