Add viewport meta tag for smart phone scaling
[zf2.biz/application_blanche.git] / module / Application / view / error / 404.phtml
index aa5771d..468953f 100644 (file)
@@ -26,8 +26,35 @@ switch ($this->reason) {
 
 <p><?php echo $reasonMessage ?></p>
 
-<?php else: ?>
+<?php endif ?>
+
+<?php if (isset($this->controller) && $this->controller): ?>
+
+<dl>
+    <dt>Controller:</dt>
+    <dd><?php $this->escape($this->controller) ?>
+<?php
+if (isset($this->controller_class) 
+    && $this->controller_class
+    && $this->controller_class != $this->controller
+) {
+    echo " (resolves to " . $this->escape($this->controller_class) . ")";
+}
+?>
+</dd>
+
+<?php endif ?>
+
+<?php if (isset($this->exception) && $this->exception): ?>
+
+<h2>Exception:</h2>
+
+<p><b><?php echo $this->escape($this->exception->getMessage()) ?></b></p>
+
+<h3>Stack trace</h3>
 
-<h3>No Exception available</h3>
+<pre>
+<?php echo $this->exception->getTraceAsString() ?>
+</pre>
 
 <?php endif ?>