whenever the controller is called, if it is not registered in zend acl, then we usually get erro r, like this
Fatal error: Uncaught exception 'Zend_Acl_Exception' with message
'Resource 'hsfasfdadsf' not found' in /usr/share/php/libzend-framework-php/Zend/Acl.php:365
Stack trace:
there is no way to check if the controller and action are registered in zend acl, I tried
if(!$acl->get($controller))
{
$request->setControllerName('error');
$request->setActionName('notfound');
}
but does not work
source
share