/** * Creates a new SeoCategoryModel model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { $model = new SeoCategoryModel(); if ($model->load(Yii::$app->request->post()) && $model->save()) { Yii::$app->session->setFlash('success', 'Seo Category has been created.'); return $this->redirect(['index']); } // return $this->render('@vendor/kravchukdim/yii2seo/views/seoCategory/create', [ return $this->render('@vendor/kravchukdim/yii2seo/views/seoCategory/create', ['model' => $model]); }