Answer the question
In order to leave comments, you need to log in
How to increase row height of Active Form in Yii2?
I use Yii2 and Active Form.
There is a field
In it you need to write, for example, a small note.
How to change its height? 'post')
= $form->field($model,
Answer the question
In order to leave comments, you need to log in
As far as I understand, you are a beginner programmer. 3 question from the tape and 3 question that can be solved by reading the documentation. field - creates input type="text", it is single line, if you need multiline use textarea. field($model,'post')->textarea();
You can set HTML attributes for an r element in the last function
<?= $form->field($model,'post')->textarea(['class' => 'my_post' , 'data-id' => '123']); ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question