0
我設置這在我的AppController.phpCakePHP的ACL提供了錯誤
$this->Auth->authorize = array(
'Actions' => array(
'actionPath' => 'controllers/'
)
);
這是我的阿索表:
id parent_id model foreign_key alias lft rght
25 NULL NULL NULL controllers 1 2
這是我的阿羅表:
id parent_id model foreign_key alias lft rght
1 1 Group 1 NULL 27 30
15 14 User 1 NULL 28 29
這是我的Aco_Aro表格:
id aro_id aco_id _create _read _update _delete
15 1 25 1 1 1 1
,我得到這個錯誤:
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:
Aro: Array
(
[User] => Array
(
[id] => 1
[username] => Test
[group_id] => 1
[created] => 2012-03-24 22:47:33
[modified] => 2012-03-24 22:47:33
)
)
Aco: controllers/Posts/index
非常感謝! – user558117 2012-03-25 13:29:03