Answer the question
In order to leave comments, you need to log in
How to handle custom forms in yii2?
Hello. Please help me figure it out. How to process forms in yii2? Why do you need ActiveForm at all?
I have a form that looks like this.
<label for="range">Приоритет:</label>
<input type="range" id="range" min="1" max="3" step="1" value="0" data-slideout-ignore/>
<div class="labels">
<span class="left active" data-priority="1">низкий</span>
<span class="center" data-priority="2">средний</span>
<span class="right" data-priority="3">высокий</span>
</div>
Answer the question
In order to leave comments, you need to log in
Why do you need ActiveForm at all?
echo $form->field($model, 'attribute')->widget(SomeMyWidget::classname(),[
'some' => 'config'
]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question