]> dev.renevier.net Git - syj.git/blob - application/views/scripts/error/error.phtml
fixes css regression in newpwd, contact and account
[syj.git] / application / views / scripts / error / error.phtml
1 <?php
2     $this->redirectLinks = false;
3 ?>
4
5 <h1><?php echo $this->translate('An error occurred')?></h1>
6 <h2><?php
7   $code = Zend_Controller_Front::getInstance()->getResponse()->getHttpResponseCode();
8   printf('%d: %s', $code, Zend_Http_Response::responseCodeAsText($code));
9 ?>
10 </h2>
11
12     <?php if (isset ($this->message)) {
13         echo '<p>' . $this->message . '</p>';
14     }?>
15
16   <?php if (isset($this->exception)): ?>
17
18   <h3>Exception information:</h3>
19   <p>
20       <b>Message:</b> <?php echo $this->exception->getMessage() ?>
21   </p>
22
23   <h3>Stack trace:</h3>
24   <pre><?php echo $this->exception->getTraceAsString() ?>
25   </pre>
26
27   <h3>Request Parameters:</h3>
28   <pre><?php echo $this->escape(var_export($this->request->getParams(), true)) ?>
29   </pre>
30   <?php endif ?>
31
32     <p>
33     <?php
34         if ($this->isServerError) {
35             echo $this->translate('Please try again later');
36         } else {
37             echo $this->anchor($this->baseUrl(), $this->translate('go to main page'));
38         }
39         ?>
40
41     </p>