With a bad controller http://domain/default/sfsdf:

I var_dump($errors) after the first line of class ErrorController <$errors = $this->_getParam('error_handler')>, and get (edited)...

*object*(/ArrayObject/)[/32/]
  /public/  'exception'=>
    *object*(/Zend_Controller_Dispatcher_Exception/)[/31/]
      /protected/  'message'=>  string  'Invalid controller specified (sfsdf)'  
/(length=36)/
      /protected/  'code'=>  int  0

I var_dump($this->getFrontController()) and get (edited)...

*object*(/Zend_Controller_Front/)[/7/]
  /protected/  '_dispatcher'=>
    *object*(/Zend_Controller_Dispatcher_Standard/)[/4/]
      /protected/  '_response'=>
        *object*(/Zend_Controller_Response_Http/)[/28/]
          /protected/  '_httpResponseCode'=>  int  404
  /protected/  '_plugins'=>
    *object*(/Zend_Controller_Plugin_Broker/)[/8/]
      /protected/  '_response'=>
        *object*(/Zend_Controller_Response_Http/)[/28/]
          /protected/  '_httpResponseCode'=>  int  404
  /protected/  '_request'=>
    *object*(/Zend_Controller_Request_Http/)[/27/]
  /protected/  '_response'=>
    *object*(/Zend_Controller_Response_Http/)[/28/]
      /protected/  '_httpResponseCode'=>  int  404

Why does "code" in the first dump not match the (correct) httpResponseCode in the second? It does if I have a good controller and a bad action.

TIA...


Reply via email to