0
AclNode::node() - Couldn't find Aro node identified by "Array ([Aro0.model] => User [Aro0.foreign_key] => 1) "
Error: An Internal Error Has Occurred.
Stack Trace
我的模型名稱是管理沒有用戶,我已經在驗證組件的配置設置ACL CakePHP的錯誤
public $components = array('Acl',
'Auth' => array(
'loginRedirect' => array('controller' => 'admins', 'action' => 'index'),
'logoutRedirect' => array('controller' => 'admins', 'action' => 'login'),
'loginAction' => array('controller' => 'admins','action' => 'login'),
'authError' => '<font color="red">Did you really think you are allowed to see that? If yes then login!</font>',
'authenticate' => array(
'Form' => array(
'userModel' => 'Admin',
'fields' => array('username' => 'username', 'password' => 'password')
)
)
), 'Session', 'Email');
我不知道是怎麼回事用戶沒有在錯誤管理。
在此先感謝。
http://stackoverflow.com/questions/12967707/acl-where-to-configure-custom-usermodel-for-authorize – 2014-02-25 09:32:35