public function actionApplicants() { $model = new Applicants(); if ($model->load(Yii::$app->request->post())) { if ($user = $model->create()) { return $this->goHome(); } } return $this->render('create', ['model' => $model]); }