PHP code example of githubjeka / yii2-gui-rbac
1. Go to this page and download the library: Download githubjeka/yii2-gui-rbac library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
githubjeka / yii2-gui-rbac example snippets
// '/config/web.php' for Basic or '/backend/config/main' - Advanced Yii2 application.
'modules' => [
'rbac' => [
'class' => 'githubjeka\rbac\Module',
'as access' => [ // if you need to set access
'class' => 'yii\filters\AccessControl',
'rules' => [
[
'allow' => true,
'roles' => ['@'] // all auth users
],
]
]
],
],