ThinkphpRBAC配置
- return array(
-
- 'DB_TYPE'=>'mysql',
- 'DB_HOST'=>'localhost',
- 'DB_NAME'=>'shop',
- 'DB_USER'=>'root',
- 'DB_PWD'=>'',
- 'DB_PORT'=>'3306',
- 'DB_PREFIX'=>'think_',
- 'USER_AUTH_ON'=>true,
- 'USER_AUTH_TYPE'=>1,
- 'USER_AUTH_KEY'=>'authId',
- 'ADMIN_AUTH_KEY'=>'administrator',
- 'USER_AUTH_MODEL'=>'User',
- 'AUTH_PWD_ENCODER'=>'md5',
- 'USER_AUTH_GATEWAY' => '/Public/login',
- 'NOT_AUTH_MODULE' => 'Public',
- 'REQUIRE_AUTH_MODULE' => '',
- 'NOT_AUTH_ACTION' => '',
- 'REQUIRE_AUTH_ACTION' => '',
- 'GUEST_AUTH_ON' => false,
- 'GUEST_AUTH_ID' => 0,
-
- 'RBAC_ROLE_TABLE' => 'think_role',
- 'RBAC_USER_TABLE' => 'think_role_user',
- 'RBAC_ACCESS_TABLE' => 'think_access',
- 'RBAC_NODE_TABLE' => 'think_node',
-
- );
- ?>