2017 © Pedro Peláez
 

yii2-extension yii2-rbac

The RBAC GUI for the Yii framework

image

yadjet/yii2-rbac

The RBAC GUI for the Yii framework

  • Thursday, March 23, 2017
  • by hiscaler
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2-rbac

RBAC For Yii2, (*1)

安装

composer require yadjet/yii2-rbac, (*2)

配置

安装完毕后,你需要配置控制文件中的 authManager 组件属性,例如, (*3)

'authManager' => [
    'class' => 'yii\rbac\DbManager',
    'defaultRoles' => [],
    ......
],

实现访问控制

创建自己的控制器,并确保从 \yadjet\rbac\controllers\RbacController 类继承,例如:, (*4)

namespace backend\controllers;

class Controller extends \yadjet\rbac\controllers\RbacController
{

    public function actionIndex() {
        ......
    }

}

The Versions

23/03 2017

dev-master

9999999-dev

The RBAC GUI for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar hiscaler

yii2 rbac