projects
/
zf2.biz
/
application_blanche.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5d1485
)
Pass exception on render404() method of view listener
author
Evan Coury
<me@evancoury.com>
Thu, 17 Nov 2011 23:05:57 +0000
(16:05 -0700)
committer
Evan Coury
<me@evancoury.com>
Thu, 17 Nov 2011 23:05:57 +0000
(16:05 -0700)
modules/Application/src/Application/View/Listener.php
patch
|
blob
|
history
diff --git
a/modules/Application/src/Application/View/Listener.php
b/modules/Application/src/Application/View/Listener.php
index
f909dcd
..
275736d
100644
(file)
--- 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);