/** * Creates a new BackendUser model. * If creation is successful, the browser will be redirected to the 'signupSucces' page. * @return mixed */ public function actionCreate() { $model = new BackendUser(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(array('signupsucces', 'username' => $model->username)); } else { return $this->render('create', ['model' => $model]); } }