Answer the question
In order to leave comments, you need to log in
How in yii2 does one form element have its own class?
How to set the class col-md-2 to an element?
<?= $form->field($model, 'title')->dropDownList(\yii\helpers\ArrayHelper::map(\app\models\Organizat::find()->all(), 'id' , 'name')) ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question