Commit 5cd7caaa authored by Shakarim Sapa's avatar Shakarim Sapa

- Проверяем BaseForm

parent 9b4aeee1
......@@ -70,7 +70,7 @@ class CourseController extends FrontendController
return $this->render('index', ['dataProvider' => $dataProvider,
/*'formPopup' => $formPopup->out, 'formLoginPopup' => $formLoginPopup->out*/
'form' => $form->out
'formModel' => $modelUser
]);
}
......
......@@ -107,7 +107,7 @@ WidgetAssetBundle::register($this);
<?php
$f = ActiveForm::begin(['id' => 'sh_reg_form', 'options' => ['enctype' => 'multipart/form-data']]);
echo $f->field($form, 'name')->textInput(['placeholder'=>"Ваше имя*", 'class'=>'input_st field-input required alphanumeric'])->label(false);
echo $f->field($formModel, 'name')->textInput(['placeholder'=>"Ваше имя*", 'class'=>'input_st field-input required alphanumeric'])->label(false);
ActiveForm::end();
?>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment