From: Evan Coury Date: Thu, 17 Nov 2011 23:05:57 +0000 (-0700) Subject: Pass exception on render404() method of view listener X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=80dc94e6c6b4cd2742cc059c8e95dca8fb6717f6;hp=c5d148536e8e2796926db08ed775c695fad69267;p=zf2.biz%2Fgalerie.git Pass exception on render404() method of view listener --- diff --git a/modules/Application/src/Application/View/Listener.php b/modules/Application/src/Application/View/Listener.php index f909dcd..275736d 100644 --- a/modules/Application/src/Application/View/Listener.php +++ b/modules/Application/src/Application/View/Listener.php @@ -169,7 +169,11 @@ class Listener implements ListenerAggregate return; } - $vars = array('message' => 'Page not found.'); + $vars = array( + 'message' => 'Page not found.', + 'exception' => $e->getParam('exception'), + 'display_exceptions' => $this->displayExceptions(), + ); $content = $this->view->render('pages/404.phtml', $vars);