PHP code example of suliang / yii2-extjs-rbac
1. Go to this page and download the library: Download suliang/yii2-extjs-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/ */
suliang / yii2-extjs-rbac example snippets
'modules' => [
// ...
'admin' => '\wsl\rbac\modules\admin\Module',
],
'controllerMap' => [
// ...
'site' => '\wsl\rbac\controllers\SiteController',
],
'components' => [
// ...
'user' => [
'identityClass' => 'wsl\rbac\models\DpAdminUser',
// ...
],
]
class ExampleController extends \wsl\rbac\base\Controller
{
}
'controllerMap' => [
'site' => [
'class' => '\wsl\rbac\controllers\SiteController',
// 'extJs' => [ // 按需配置,未配置的key会使用默认值
// 'path' => '/dp/extjs', // ExtJs符号连接路径
// 'extendPath' => '/dp/extjs-extend', // ExtJs扩展符号连接路径
// 'appJsPath' => '/app.js', // app.js路径
// 'bootstrapJsPath' => '/dp/extjs-extend/bootstrap.js', // bootstrap.js路径
// 'bootstrapJsonPath' => '/dp/extjs-extend/bootstrap.json', // bootstrap.json路径
// 'bootstrapCssPath' => '/dp/extjs/packages/ext-theme-crisp/build/resources/ext-theme-crisp-all.css', // bootstrap.css路径
// ],
],
// ...
],