<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Yii2 ExtJs5 RBAC網(wǎng)站管理擴(kuò)展工具

          聯(lián)合創(chuàng)作 · 2023-09-27 01:49

          Yii2 ExtJs5 RBAC 支持 ACL+RBAC。

          安裝

          安裝這個(gè)擴(kuò)展的首選方式是通過composer

          執(zhí)行

          composer require --prefer-dist myweishanli/yii2-extjs-rbac

          或添加

          "myweishanli/yii2-extjs-rbac": "~1.0.0"

          配置

          @app/config/main.php

          'modules' => [ 'admin' => '\wsl\rbac\modules\admin\Module',
              ...
          ],
          'controllerMap' => [ 'site' => '\wsl\rbac\controllers\SiteController',
              ...
          ],
          'components' => [ 'user' => [ 'identityClass' => 'wsl\rbac\models\DpAdminUser',
                  ...
              ],
              ...
          ]

          導(dǎo)入數(shù)據(jù)

          yii migrate --migrationPath=@wsl/rbac/migrations

          完成配置和導(dǎo)入數(shù)據(jù)即可訪問

          超級(jí)管理員帳號(hào)和密碼

          username: drupecms password: drupecms

          控制器

          新建的Controller需要繼承\(zhòng)wsl\rbac\base\Controller

          class ExampleController extends \wsl\rbac\base\Controller {
          }

          自定義配置

          如果需要自定義ExtJs的app.js路徑

          'controllerMap' => [ 'site' => [ 'class' => '\wsl\rbac\controllers\SiteController', 'extJs' => [ 'appPath' => '/app.js',
                  ],
              ],
              ...
          ],

          注: 每次升級(jí)記住執(zhí)行yii migrate --migrationPath=@wsl/rbac/migrations

          預(yù)覽圖

          加載頁(yè)面

          加載完成

          管理員帳號(hào)

          高級(jí)搜索

          編輯帳號(hào)

          用戶組管理

          編輯用戶組管理

          菜單管理

          菜單管理URL管理

          編輯菜單管理URL

          編輯菜單管理URL規(guī)則

          系統(tǒng)配置

          管理所有的權(quán)限URL

          瀏覽 15
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  白白日韩在线观看 | 青娱乐换妻偷拍 | 女人20岁毛片60分钟 | 婷婷五月丁香狠狠撸 | 中文字幕日韩三级 |