V
V
Vlad Osadchyi2018-11-02 02:33:17
Yii
Vlad Osadchyi, 2018-11-02 02:33:17

How to change the appearance of a field in an ActiveForm?

5bdb8cb23f4f7491722734.png
there is such an input (picture above), you need to make sure that the field name and the input field itself are on the same line, as in the picture below
5bdb8d2a571c6643331539.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-11-02
@slo_nik

Goodnight.
If you are using yii\widget\ActiveForm then replace it with yii\bootstrap\ActiveForm

use yii\bootstrap\ActiveForm;
$form = ActiveForm::begin(['layout' => 'horizontal'])

And get what you want.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question