A
A
Alexander Gorkin2018-08-06 20:56:23
Yii
Alexander Gorkin, 2018-08-06 20:56:23

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

1 answer(s)
D
Dmitry, 2018-08-06
@mrbagfreeman

Good evening.
Documentation
One
Two

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question