]> dev.renevier.net Git - syj.git/blob - application/views/scripts/error/error.phtml
085621b91e914252b5e0f68582fe956f1f11f766
[syj.git] / application / views / scripts / error / error.phtml
1 <?php
2     $this->redirectLinks = false;
3 ?>
4   <h1><?php echo $this->translate('An error occurred')?></h1>
5   <h2><?php echo $this->message ?></h2>
6
7   <?php if (isset($this->exception)): ?>
8
9   <h3>Exception information:</h3>
10   <p>
11       <b>Message:</b> <?php echo $this->exception->getMessage() ?>
12   </p>
13
14   <h3>Stack trace:</h3>
15   <pre><?php echo $this->exception->getTraceAsString() ?>
16   </pre>
17
18   <h3>Request Parameters:</h3>
19   <pre><?php echo var_export($this->request->getParams(), true) ?>
20   </pre>
21   <?php endif ?>
22
23     <p id="message">
24     <?php
25         if ($this->isServerError) {
26             echo $this->translate('Please try again later');
27         } else {
28             echo $this->anchor($this->baseUrl(), $this->translate('go to main page'));
29         }
30         ?>
31
32     </p>