Hi trying to bubble an error when throwing something like this as Zend_Auth wont do it for u it seems

if (!$auth->hasIdentity())
       {
           throw new Zend_Auth_Adapter_Exception("Not Allowed Access");
       }

The return type to the error controller is always EXCEPTION_OTHER. Id like it to be a EXCEPTION_AUTH_FAILED code or whatever so that i am able to display some custom template for a particular code / type.



switch ($exceptionType) {
               case 'Zend_Controller_Dispatcher_Exception':
                   $error->type = self::EXCEPTION_NO_CONTROLLER;
                   break;
               case 'Zend_Controller_Action_Exception':
                   $error->type = self::EXCEPTION_NO_ACTION;
                   break;
               default:
                   $error->type = self::EXCEPTION_OTHER;
                   break;
           }

Let me know.

Reply via email to