X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=module%2FApplication%2Fsrc%2FApplication%2FView%2FListener.php;h=ac4c4b7f6165a4982a3df29796eeb03cef254856;hb=8614a9a290239aed7b5819033da30418503748cf;hp=275736dbfc809543ca8a445386746ab93bfa94ac;hpb=069c369af0d167f7bc1b359468f3136d50429747;p=zf2.biz%2Fgalerie.git diff --git a/module/Application/src/Application/View/Listener.php b/module/Application/src/Application/View/Listener.php index 275736d..ac4c4b7 100644 --- a/module/Application/src/Application/View/Listener.php +++ b/module/Application/src/Application/View/Listener.php @@ -40,8 +40,8 @@ class Listener implements ListenerAggregate public function attach(EventCollection $events) { $this->listeners[] = $events->attach('dispatch.error', array($this, 'renderError')); - $this->listeners[] = $events->attach('dispatch', array($this, 'render404'), -80); - $this->listeners[] = $events->attach('dispatch', array($this, 'renderLayout'), -1000); + $this->listeners[] = $events->attach('dispatch', array($this, 'render404'), -1000); + $this->listeners[] = $events->attach('dispatch', array($this, 'renderLayout'), -80); } public function detach(EventCollection $events) @@ -97,7 +97,7 @@ class Listener implements ListenerAggregate $response->setStatusCode(404); } - $script = 'pages/' . $page . '.phtml'; + $script = 'error/' . $page . '.phtml'; // Action content $content = $this->view->render($script); @@ -175,7 +175,7 @@ class Listener implements ListenerAggregate 'display_exceptions' => $this->displayExceptions(), ); - $content = $this->view->render('pages/404.phtml', $vars); + $content = $this->view->render('error/404.phtml', $vars); $e->setResult($content);