public function actionShop1() { $model = new Shop(); if ($model->load(yii::$app->request->post()) && $model->validate()) { yii::$app->session->setFlash('success', 'You have entered the data correctly'); } return $this->render('shopForm', ['model' => $model]); }