public function actionCreateModule() { Yii::$app->menu->flushCache(); $model = new \cmsadmin\models\Nav(); $create = $model->createModule($this->postArg('parent_nav_id'), $this->postArg('nav_container_id'), $this->postArg('lang_id'), $this->postArg('title'), $this->postArg('alias'), $this->postArg('module_name'), $this->postArg('description')); if ($create !== true) { Yii::$app->response->statusCode = 422; } return $create; }