/** * Creates a new Movie model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { $model = new Movie(); if ($model->load(Yii::$app->request->post()) && $model->editsave()) { Yii::$app->session->setFlash("movie_notification", Yii::t("app", "Movie Created!")); return $this->redirect(['index']); } else { return $this->render('create', ['model' => $model]); } }