Skip to content

r2am9d/yii2-rbac-rule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 RBAC Rule Generator Extension


An extension for generataring rule classes via gii.

Installation

The preferred way to install this extension is through composer:

Either run

php composer.phar require --prefer-dist r2am9d/yii2-rbac-rule

or add

"r2am9d/yii2-rbac-rule": "*"

to the require-dev section of your composer.json file.

Usage

Once the extension is installed, simply modify your application configuration as follows:

return [
    'bootstrap' => ['gii'],
    'modules' => [
        'gii' => [
            'class' => 'yii\gii\Module',
            'generators' => [
                'rule' => [
                    'class' => 'r2am9d\rule\gii\Generator'
                ]
            ]
        ],
    ],
];

You can then access the generator through the following URL:

http://localhost/path/to/index?r=gii/rule

or if you have enabled pretty URLs, you may use the following URL:

http://localhost/path/to/index/gii/rule

About

Yii2 RBAC Rule Generator Extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages