The RBAC times in configuring Yii2 are wrong, based on the method configuration provided by this address
Http://www.manks.top/yii2_fra ...
When configuring the Urlmanager item to main.php The Times is wrong, just one setting
"urlManager" => [ // 'class' => 'yii\rbac\DbManager', //这里记得用单引号而不是双引号 ],
There will be an error.
What the hell is this?
Reply content:
The RBAC times in configuring Yii2 are wrong, based on the method configuration provided by this address
Http://www.manks.top/yii2_fra ...
When configuring the Urlmanager item to main.php The Times is wrong, just one setting
"urlManager" => [ // 'class' => 'yii\rbac\DbManager', //这里记得用单引号而不是双引号 ],
There will be an error.
What the hell is this?
The components array is joined with the AuthManager component, with Phpmanager and Dbmanager two ways,
//PhpManager将权限关系保存在文件里,这里使用的是DbManager方式,将权限关系保存在数据库. "authManager" => [ "class" => 'yii\rbac\DbManager', //这里记得用单引号而不是双引号 "defaultRoles" => ["guest"], ], 人家是authManager