Zend\EventManager\EventCollection,
Zend\EventManager\ListenerAggregate,
Zend\EventManager\StaticEventCollection,
- Zend\Http\Response,
+ Zend\Http\PhpEnvironment\Response,
Zend\Mvc\Application,
Zend\Mvc\MvcEvent,
Zend\View\Renderer;
case Application::ERROR_CONTROLLER_NOT_FOUND:
case Application::ERROR_CONTROLLER_INVALID:
$vars = array(
- 'message' => 'Page not found.',
+ 'message' => 'Page not found.',
+ 'exception' => $e->getParam('exception'),
+ 'display_exceptions' => $this->displayExceptions(),
);
$response->setStatusCode(404);
break;
break;
}
- $content = $this->view->render('error.phtml', $vars);
+ $content = $this->view->render('error/index.phtml', $vars);
$e->setResult($content);