2011-05-29 67 views
1

我嘗試使用alaxos ACL插件的ACL代碼將
研究,我得到了錯誤
CakePHP的的Acl錯誤

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
感謝答案

+0

'Aro0.foreign_key'應該是'admin'嗎? 「foreign_key」字段是表模式中的一個整數。可能不相關 – Ross 2011-05-29 15:01:41

回答

1

你應該設定基本需要數據庫中的數據 它對於acl組件正常工作很重要