Updated to latest view-layer changes
[zf2.biz/galerie.git] / module / Application / view / error / 404.phtml
1 <h1>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 else: ?>
30
31 <h3>No Exception available</h3>
32
33 <?php endif ?>