Beispiel #1
0
 /**
  * @name 化分权限
  */
 public function actionPermission($id)
 {
     $model = $this->auth->getRole($id);
     return $this->render('permission', ['classes' => Permission::getShowFormat($id), 'model' => $model]);
 }
 /**
  * @name 权限主页面
  * 这个页面应该显示些啥东西,应该是些介绍,教程之类的东西
  * 所有权限项列表,可在此表修改权限项注释
  */
 public function actionIndex()
 {
     return $this->render('index', ['classes' => Permission::getShowFormat()]);
 }