$errors = $this->_getRequest('error_handler');
switch ($errors->type)
.....
}
Powiem że dostaje taki błąd:
Fatal error: Uncaught exception 'Zend_Controller_Action_Exception' with message 'ErrorController::_getRequest() does not exist and was not trapped in __call()'....
cały kod mój wygląda tak:
<?php require_once 'Zend/Controller/Action.php'; class ErrorController extends Zend_Controller_Action { public function errorAction() { $errors = $this->_getRequest('error_handler'); } } ?>