<?php $form = ActiveForm::begin(['enableClientScript' => false,]); ?>
<?= $form->field($model, 'name', ['template' => '{input}']) ?>
<?= $form->field($model, 'email', ['template' => '{input}']) ?>
<?= Html::submitButton('Отправить') ?>
<?php ActiveForm::end(); ?>
<div class="form-group field-testform-name required">
<input type="text" id="testform-name" class="form-control" name="TestForm[name]" aria-required="true">
</div>
<?php $form = ActiveForm::begin([
'fieldConfig' => [
'options' => [
'tag' => false,
]
]
]); ?>
echo $form->field($model, 'demo', [
'template' => '{input}{error}{hint}'
]);