Issue #1 resolved

include(RbacController.php): failed to open stream: No such file or directory

xh st
created an issue

include(RbacController.php): failed to open stream: No such file or directory

main.php

'modules'=>array(
        'rbac' => array(
            'layout' => 'main',
            'debug' => true,
            'disabledScanFrontend' => true,
            'disabledScanModules' => array('gii', 'auth'),
            'userTable' => 'User',
            'userTableId' => 'LoginName',
            'userTableName' => 'Name',
            'pageSize' => 20,
            'language' => 'zh_CN',
            'notAuthorizedView' => null,
        ),
),

Comments (4)

  1. hiscaler repo owner

    you will import it in main.php config file. like this:

    'import' => array(
            'application.forms.*',
            'application.models.*',
            'application.components.*',
            'rbac.controllers.RbacController',
             ......
        ),
    
  2. xh st reporter

    试了一下要写成这样才行

        'import'=>array(
            'application.models.*',
            'application.components.*',
           'application.modules.rbac.controllers.RbacController',
        ),
    
  3. Log in to comment