404 render must be called AFTER layout. The current values are wrong (layout is never...
authorGuilherme Blanco <guilhermeblanco@gmail.com>
Sat, 10 Dec 2011 05:15:52 +0000 (00:15 -0500)
committerGuilherme Blanco <guilhermeblanco@gmail.com>
Sat, 10 Dec 2011 05:15:52 +0000 (00:15 -0500)
module/Application/src/Application/View/Listener.php

index 71ea50b..ac4c4b7 100644 (file)
@@ -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)