Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/02/2011, 17:18
pur
 
Fecha de Ingreso: agosto-2007
Mensajes: 98
Antigüedad: 16 años, 8 meses
Puntos: 4
Respuesta: Problema redireccion en plugin

Gracias.
Le agregué el redirector y me lanza un error, me dice que tiene un bucle de redireccionamiento, no entiendo porque.
Cual sería la mejor forma de redireccionar en un plugin?
Código PHP:
Ver original
  1. if (!$this->_acl->isAllowed($role, $resource, $action)) {
  2.             if (!$this->_auth->hasIdentity()) {
  3.                 $module = self::NO_AUTH_MODULE;
  4.                 $controller = self::NO_AUTH_CONTROLLER;
  5.                 $action = self::NO_AUTH_ACTION;
  6.  
  7.                 $this->_redirector =  Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');
  8.                 $this->_redirector->setGotoSimple("nopermitido","index","default");
  9.                
  10.             } else {
  11.                 $module = self::NO_ACL_MODULE;
  12.                 $controller = self::NO_ACL_CONTROLLER;
  13.                 $action = self::NO_ACL_ACTION;
  14.             }