initial commit
[namibia] / module / Application / view / error / 404.phtml
1 <h1><?php echo ('A 404 error occurred') ?></h1>
2 <h2><?php echo $this->message ?></h2>
3
4 <?php if (isset($this->reason) && $this->reason): ?>
5
6 <?php
7 $reasonMessage= '';
8 switch ($this->reason) {
9     case 'error-controller-cannot-dispatch':
10         $reasonMessage = ('The requested controller was unable to dispatch the request.');
11         break;
12     case 'error-controller-not-found':
13         $reasonMessage = ('The requested controller could not be mapped to an existing controller class.');
14         break;
15     case 'error-controller-invalid':
16         $reasonMessage = ('The requested controller was not dispatchable.');
17         break;
18     case 'error-router-no-match':
19         $reasonMessage = ('The requested URL could not be matched by routing.');
20         break;
21     default:
22         $reasonMessage = ('We cannot determine at this time why a 404 was generated.');
23         break;
24 }
25 ?>
26
27 <p><?php echo $reasonMessage ?></p>
28
29 <?php endif ?>
30
31 <?php if (isset($this->controller) && $this->controller): ?>
32
33 <dl>
34     <dt><?php echo ('Controller') ?>:</dt>
35     <dd><?php echo $this->escapeHtml($this->controller) ?>
36 <?php
37 if (isset($this->controller_class)
38     && $this->controller_class
39     && $this->controller_class != $this->controller
40 ) {
41     echo '(' . sprintf(('resolves to %s'), $this->escapeHtml($this->controller_class)) . ')';
42 }
43 ?>
44 </dd>
45 </dl>
46
47 <?php endif ?>
48
49 <?php if (isset($this->display_exceptions) && $this->display_exceptions): ?>
50
51 <?php if(isset($this->exception) && $this->exception instanceof Exception): ?>
52 <hr/>
53 <h2><?php echo ('Additional information') ?>:</h2>
54 <h3><?php echo get_class($this->exception); ?></h3>
55 <dl>
56     <dt><?php echo ('File') ?>:</dt>
57     <dd>
58         <pre class="prettyprint linenums"><?php echo $this->exception->getFile() ?>:<?php echo $this->exception->getLine() ?></pre>
59     </dd>
60     <dt><?php echo ('Message') ?>:</dt>
61     <dd>
62         <pre class="prettyprint linenums"><?php echo $this->exception->getMessage() ?></pre>
63     </dd>
64     <dt><?php echo ('Stack trace') ?>:</dt>
65     <dd>
66         <pre class="prettyprint linenums"><?php echo $this->exception->getTraceAsString() ?></pre>
67     </dd>
68 </dl>
69 <?php
70     $e = $this->exception->getPrevious();
71     if ($e) :
72 ?>
73 <hr/>
74 <h2><?php echo ('Previous exceptions') ?>:</h2>
75 <ul class="unstyled">
76     <?php while($e) : ?>
77     <li>
78         <h3><?php echo get_class($e); ?></h3>
79         <dl>
80             <dt><?php echo ('File') ?>:</dt>
81             <dd>
82                 <pre class="prettyprint linenums"><?php echo $e->getFile() ?>:<?php echo $e->getLine() ?></pre>
83             </dd>
84             <dt><?php echo ('Message') ?>:</dt>
85             <dd>
86                 <pre class="prettyprint linenums"><?php echo $e->getMessage() ?></pre>
87             </dd>
88             <dt><?php echo ('Stack trace') ?>:</dt>
89             <dd>
90                 <pre class="prettyprint linenums"><?php echo $e->getTraceAsString() ?></pre>
91             </dd>
92         </dl>
93     </li>
94     <?php
95         $e = $e->getPrevious();
96         endwhile;
97     ?>
98 </ul>
99 <?php endif; ?>
100
101 <?php else: ?>
102
103 <h3><?php echo ('No Exception available') ?></h3>
104
105 <?php endif ?>
106
107 <?php endif ?>