CakePHP 1.3:Alaxos ACL 由于名为 Configurations 的插件而无法工作
我一直在我的网站上使用 Alaxos CakePHP ACLplugin,这非常棒。但是,我安装了配置插件,如果运行 ACL,则会出现以下错误:
Undefined property: AclController::$Configuration [APP/app_controller.php, line 52]
Fatal error: Call to a member function load() on a non-object in /home/bravanews/public_html/app/app_controller.php on line 52
为了运行 ACL 并更新权限表,我必须在 app_controller.php
file:
$this->Configuration->load('CFG');
有谁知道为什么 ACL 无法识别这个插件? ACL不是应该继承app_controller函数吗?
编辑:<<问题已解决>>我在 ACL 控制器中使用了 var $uses = array('Configuration.Configuration');
,它解决了我的问题。该 ACL 控制器有一行内容为 var $uses = null;
I have been using Alaxos CakePHP ACLplugin for my site, which is great. However, I installed a Configuration plugin and if I run ACL, I get the following error:
Undefined property: AclController::$Configuration [APP/app_controller.php, line 52]
Fatal error: Call to a member function load() on a non-object in /home/bravanews/public_html/app/app_controller.php on line 52
In order for me to run ACL and update my permissions table I have to comment out the following code in my app_controller.php
file:
$this->Configuration->load('CFG');
Does anyone know why ACL does not recognized this plugin? Isnt ACL supposed to inherit app_controller functions?
EDIT: << PROBLEM FIXED >> I used var $uses = array('Configuration.Configuration');
in the ACL controller and it fixed my problem. This ACL controller had a line that says var $uses = null;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅问题的编辑部分以获取答案。
See EDIT section of the question for the answer.