Beispiel #1
0
 public function actionCreateRole()
 {
     if ($this->isInsertAllowed()) {
         if (Yii::$app->request->post()) {
             $roleModel = new Role();
             $roleModel->saveRole(Yii::$app->request->post());
             /*return $this->render('role_list');*/
             return $this->redirect(['security/role-management']);
         }
         return $this->render('create_role');
     } else {
         echo "You don't have access here";
         die;
     }
 }