Hi 

how can i extend below this simple ErrorController beyond controller-action
to GET variables for eg. $this->getRequest()->getParam('id')

i need to get errors for individual content items too, where an invalid id
or not found/wrong id variables are purposely typed on the browser


class ErrorController extends Zend_Controller_Action
{
    
        
    public function errorAction()
    {
        $errors = $this->_getParam('error_handler');
        switch ($errors->type) {
            case
Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
            case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
              
                $this->getResponse()->setRawHeader('HTTP/1.1 404 Not
Found');
                $this->view->errorType = 404;
                $this->view->exception = $errors->exception;
                break;
            default:
                throw $errors->exception;
                break;
        }
    }
}



Any help would be greatly appreciated

cheers
-- 
View this message in context: 
http://www.nabble.com/extending-ErrorController-beyond-controller-and-action-to-get-vars-tp23306135p23306135.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to