Cita: atal error: Uncaught exception 'Zend_Acl_Exception' with message 'Resource 'error' not found' in /var/www/qaz/library/Zend/Acl.php:365 Stack trace: #0 /var/www/qaz/library/Zend/Acl.php(777): Zend_Acl->get('error') #1 /var/www/qaz/application/modules/Qclientes/plugins/AccessCheck.php(25): Zend_Acl->isAllowed('admin', 'error', 'error') #2 /var/www/qaz/library/Zend/Controller/Plugin/Broker.php(309): Qclientes_Plugin_AccessCheck->preDispatch(Object(Zend_Controller_Request_Http )) #3 /var/www/qaz/library/Zend/Controller/Front.php(941): Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http )) #4 /var/www/qaz/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch() #5 /var/www/qaz/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #6 /var/www/qaz/public/index.php(37): Zend_Application->run() #7 {main} thrown in /var/www/qaz/library/Zend/Acl.php on line 365
este es mi acl
Código PHP:
<?php
class Qclientes_Model_LibraryAcl extends Zend_Acl{
public function __construct() {
$this->add(new Zend_Acl_Resource('index'));
$this->add(new Zend_Acl_Resource('qclientes'));
$this->add(new Zend_Acl_Resource('consulta'),'qclientes');
$this->add(new Zend_Acl_Resource('edit'),'qclientes');
$this->add(new Zend_Acl_Resource('borrar'),'qclientes');
$this->addRole(new Zend_Acl_Role('user'));
$this->addRole(new Zend_Acl_Role('admin'),'user');
$this->allow('admin', 'qclientes', 'consulta');
$this->allow('admin', 'qclientes', 'borrar');
$this->allow('admin', 'qclientes', 'edit');
$this->allow('admin', 'index', 'index');
$this->allow('user', 'qclientes','consulta');
$this->allow('user', 'index', 'index');
}
}
?>
muchas gracias!!!!!