public function actionCreate() { $model = new Bank(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['index']); } else { return $this->render('create', ['type' => "create", 'model' => $model]); } }