Example #1
0
 public function actionCreate()
 {
     $model = new Authuser();
     $model->scenario = 'Newuser';
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         Proc::RemoveLastBreadcrumbsFromSession();
         // Удаляем последнюю хлебную крошку из сессии (Создать меняется на Обновить)
         return $this->redirect(['update', 'id' => $model->auth_user_id]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }