3edd37a86f8ba30d010b4dba23816d0f941131d0
[zf2.biz/application_blanche.git] / module / Application / view / error / 404.phtml
1 <h1><?php echo $this->translate('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 = $this->translate('The requested controller was unable to dispatch the request.');
11         break;
12     case 'error-controller-not-found':
13         $reasonMessage = $this->translate('The requested controller could not be mapped to an existing controller class.');
14         break;
15     case 'error-controller-invalid':
16         $reasonMessage = $this->translate('The requested controller was not dispatchable.');
17         break;
18     case 'error-router-no-match':
19         $reasonMessage = $this->translate('The requested URL could not be matched by routing.');
20         break;
21     default:
22         $reasonMessage = $this->translate('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 $this->translate('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($this->translate('resolves to %s'), $this->escapeHtml($this->controller_class)) . ')';
42 }
43 ?>
44 </dd>
45 </dl>
46
47 <?php endif ?>
48
49 <?php if (isset($this->exception) && $this->exception): ?>
50
51 <h2><?php echo $this->translate('Exception') ?>:</h2>
52
53 <p><b><?php echo $this->escapeHtml($this->exception->getMessage()) ?></b></p>
54
55 <h3><?php echo $this->translate('Stack trace') ?>:</h3>
56
57 <pre>
58 <?php echo $this->exception->getTraceAsString() ?>
59 </pre>
60
61 <?php endif ?>