0
我是一個新的zend框架用戶。我已經開發了一個模塊,並希望添加到現有的項目,但每當要添加模塊,我得到了以下錯誤:模塊不能添加在zend框架中1.12
Message: Role 'product:GUEST' not found
Stack trace:
#0 /var/www/start/dashboard/library/Zend/Acl.php(837): Zend_Acl_Role_Registry->get('product:GUEST')
#1 /var/www/start/dashboard/library/pldashboard/Controller/Plugin/AccessControl.php(82): Zend_Acl->isAllowed('product:GUEST', NULL, 'index')
#2 /var/www/start/dashboard/library/Zend/Controller/Plugin/Broker.php(309): Pidashboard_Controller_Plugin_AccessControl->preDispatch(Object(Zend_Controller_Request_Http))
#3 /var/www/start/dashboard/library/Zend/Controller/Front.php(941): Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http))
#4 /var/www/start/dashboard/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#5 /var/www/start/dashboard/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#6 /var/www/start/dashboard/public/index.php(26): Zend_Application->run()
#7 {main}
Request Parameters:
array (
'module' => 'product',
'controller' => 'index',
'action' => 'index',
)
我的網站的結構是:
#Application/
|--Bootstrap.php
|--#modules
|----#dashboard
|------Bootstrap.php
|------controllers
|------view
|------Models
|----#default
|------Bootstarp.php
|------#controllers
|------#view
我有沒有放置一切,但最重要的是在這裏。這工作正常,每當我想添加像transactionview和獲取錯誤(上面)的新模塊。我不知道我會在這些情況下做什麼,也沒有足夠的配置知識
你配置了ACL嗎? – Matteo
老實說,我很新zend框架..我不知道關於ACL :( 如何配置ACL? – user3060726
這裏是我的Acl.php文件爲您的評論http://www.filedropper.com/acl .. 。請你檢查我做錯了什麼! – user3060726