/** * Permission creating * @return void */ public function actionCreate() { $model = new PermissionForm(); if ($model->load(Yii::$app->request->post()) && $model->create()) { return $this->redirect(['index']); } return $this->render('create', ['model' => $model]); }