I am a new zend framework user. I've developed one module and want to add to existing project but whenever wants to add module I got below errors:
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',
)
My website's structure is:
#Application/
|--Bootstrap.php
|--#modules
|----#dashboard
|------Bootstrap.php
|------controllers
|------view
|------Models
|----#default
|------Bootstarp.php
|------#controllers
|------#view
I have not placed everything, but the most important is here. This works fine and whenever I want to add new module like transactionview and getting error (above). i don't know what i will do in these situations and also i don't have enough knowledge about configurations
You don't have Role "product:GUEST" in your ACL (check file: /var/www/start/dashboard/library/pldashboard/Controller/Plugin/AccessControl.php ) and it tries to check permissions for role "(82): Zend_Acl->isAllowed('product:GUEST', NULL, 'index')".
There is probably ACL config file in Application/configs
or table in DB where you can add roles and permissions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.