本文介绍了Cakephp Acl错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用alaxos acl插件来研究Acl代码\\ b $ b,并得到错误

I try to use alaxos acl plugin for study of Acl code
and I got error

Warning (512): AclNode::node() - Couldn't find Aro node identified by "Array
(
    [Aro0.model] => Group
    [Aro0.foreign_key] => admin
)
" [CORE\cake\libs\model\db_acl.php, line 191]
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.  Node         references:
Aro: Array
(
   [User] => Array
    (
        [id] => 76
        [username] => tttttt
        [group_id] => admin
        [active] => 1
        [activation_code] => 
        [widget_count] => 
        [lastvisit] => 
    )

)

Aco: Users/add [CORE\cake\libs\controller\components\acl.php, line 273]
Warning (2): Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\cakephp\cake\libs\debugger.php:673) [CORE\cake\libs\





感谢回答

My Db picture here
User and Group Model
thank for answer

推荐答案

应该在数据库中设置基本的需求数据
对于acl组件来说很重要

You should to set basic require data in database it important for acl component to work right

这篇关于Cakephp Acl错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 10:02