|
|
@ -22,10 +22,10 @@ use yii\base\InvalidConfigException; |
|
|
|
* $form = ActiveForm::begin(['layout' => 'horizontal']) |
|
|
|
* $form = ActiveForm::begin(['layout' => 'horizontal']) |
|
|
|
* ``` |
|
|
|
* ``` |
|
|
|
* |
|
|
|
* |
|
|
|
* This will set default values for the [[yii\bootstrap\ActiveField|ActiveField]] |
|
|
|
* This will set default values for the [[ActiveField]] |
|
|
|
* to render horizontal form fields. In particular the [[yii\bootstrap\ActiveField::template|template]] |
|
|
|
* to render horizontal form fields. In particular the [[ActiveField::template|template]] |
|
|
|
* is set to `{label} {beginWrapper} {input} {error} {endWrapper} {hint}` and the |
|
|
|
* is set to `{label} {beginWrapper} {input} {error} {endWrapper} {hint}` and the |
|
|
|
* [[yii\bootstrap\ActiveField::horizontalCssClasses|horizontalCssClasses]] are set to: |
|
|
|
* [[ActiveField::horizontalCssClasses|horizontalCssClasses]] are set to: |
|
|
|
* |
|
|
|
* |
|
|
|
* ```php |
|
|
|
* ```php |
|
|
|
* [ |
|
|
|
* [ |
|
|
@ -56,7 +56,7 @@ use yii\base\InvalidConfigException; |
|
|
|
* ]); |
|
|
|
* ]); |
|
|
|
* ``` |
|
|
|
* ``` |
|
|
|
* |
|
|
|
* |
|
|
|
* @see \yii\bootstrap\ActiveField for details on the [[fieldConfig]] options |
|
|
|
* @see ActiveField for details on the [[fieldConfig]] options |
|
|
|
* @see http://getbootstrap.com/css/#forms |
|
|
|
* @see http://getbootstrap.com/css/#forms |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Michael Härtl <haertl.mike@gmail.com> |
|
|
|
* @author Michael Härtl <haertl.mike@gmail.com> |
|
|
|