mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-21 00:54:53 +08:00
@@ -33,18 +33,18 @@ $this->title = 'Posts';
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
<!-- Widget declaration may or may not be exploded into multiple LOCs. -->
|
<!-- Widget declaration may or may not be exploded into multiple LOCs. -->
|
||||||
<?php $form = ActiveForm::begin(array(
|
<?php $form = ActiveForm::begin([
|
||||||
'options' => array('id' => 'contact-message-form'),
|
'options' => ['id' => 'contact-message-form'],
|
||||||
'fieldConfig' => array('inputOptions' => array('class' => 'common-input')),
|
'fieldConfig' => ['inputOptions' => ['class' => 'common-input']],
|
||||||
)); ?>
|
]); ?>
|
||||||
<!-- Note indentation level here. -->
|
<!-- Note indentation level here. -->
|
||||||
<?= $form->field($contactMessage, 'name')->textInput() ?>
|
<?= $form->field($contactMessage, 'name')->textInput() ?>
|
||||||
<?= $form->field($contactMessage, 'email')->textInput() ?>
|
<?= $form->field($contactMessage, 'email')->textInput() ?>
|
||||||
<?= $form->field($contactMessage, 'subject')->textInput() ?>
|
<?= $form->field($contactMessage, 'subject')->textInput() ?>
|
||||||
<?= $form->field($contactMessage, 'body')->textArea(array('rows' => 6)) ?>
|
<?= $form->field($contactMessage, 'body')->textArea(['rows' => 6]) ?>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<?= Html::submitButton('Submit', array('class' => 'common-button')) ?>
|
<?= Html::submitButton('Submit', ['class' => 'common-button']) ?>
|
||||||
</div>
|
</div>
|
||||||
<!-- Ending widget call should have individual PHP tag. -->
|
<!-- Ending widget call should have individual PHP tag. -->
|
||||||
<?php ActiveForm::end(); ?>
|
<?php ActiveForm::end(); ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user