Exemplo n.º 1
0
 /**
  * Creates a new AuthUser model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     /** @var AuthUser $model */
     $model = new AuthUser();
     return $model->load(Yii::$app->request->post()) && $model->validate() && $this->saveAvatar($model) && $model->save() ? $this->redirect(['index']) : $this->render('create', ['model' => $model]);
 }