我正在尝试更改消息
您无权访问该位置。
使用 cakephp 3.1 的 cakedc/users 插件,但我找不到路。
这是我在 src/Controller/AppController 中的配置:
public function initialize()
{
parent::initialize();
$this->loadComponent('Flash');
$this->loadComponent('CakeDC/Users.UsersAuth', [
'authError' => 'Did you really think you are allowed to see that?',
]
);
}
但仍然是消息:
您无权访问该位置。
我做错了什么?
谢谢你。