]> dev.renevier.net Git - syj.git/blobdiff - application/views/scripts/error/error.phtml
explaination message in case of 404/410 errors for idx controller
[syj.git] / application / views / scripts / error / error.phtml
index 085621b91e914252b5e0f68582fe956f1f11f766..b602f5ddbcdd6638912c8cc423390806eb975866 100644 (file)
@@ -1,8 +1,17 @@
 <?php
     $this->redirectLinks = false;
 ?>
-  <h1><?php echo $this->translate('An error occurred')?></h1>
-  <h2><?php echo $this->message ?></h2>
+
+<h1><?php echo $this->translate('An error occurred')?></h1>
+<h2><?php
+  $code = Zend_Controller_Front::getInstance()->getResponse()->getHttpResponseCode();
+  printf('%d: %s', $code, Zend_Http_Response::responseCodeAsText($code));
+?>
+</h2>
+
+    <?php if (isset ($this->message)) {
+        echo '<p>' . $this->message . '</p>';
+    }?>
 
   <?php if (isset($this->exception)): ?>