Answer the question
In order to leave comments, you need to log in
How to set value in Active Form?
I can’t find in the documentation how to set the value value for the input field.
Here is the code:
<?php $form = ActiveForm::begin() ?>
<?= $form->field($orders,'name');?>
<?= $form->field($orders,'telephone')?>
<?= $form->field($orders,'email')?>
</div>
<div class="col-md-6">
<?= $form->field($orders,'organization')?>
<?= $form->field($orders,'inn')?>
<?= $form->field($orders,'ogrn')?>
</div>
</div>
<?= Html::submitButton('Отправить', ['class' => 'btn'])?>
<?php ActiveForm::end()?>
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