1 <h1>A 404 error occurred</h1>
2 <h2><?php echo $this->message ?></h2>
4 <?php if (isset($this->reason) && $this->reason): ?>
8 switch ($this->reason) {
9 case 'error-controller-cannot-dispatch':
10 $reasonMessage = 'The requested controller was unable to dispatch the request.';
12 case 'error-controller-not-found':
13 $reasonMessage = 'The requested controller could not be mapped to an existing controller class.';
15 case 'error-controller-invalid':
16 $reasonMessage = 'The requested controller was not dispatchable.';
18 case 'error-router-no-match':
19 $reasonMessage = 'The requested URL could not be matched by routing.';
22 $reasonMessage = 'We cannot determine at this time why a 404 was generated.';
27 <p><?php echo $reasonMessage ?></p>
31 <?php if (isset($this->controller) && $this->controller): ?>
35 <dd><?php $this->escape($this->controller) ?>
37 if (isset($this->controller_class)
38 && $this->controller_class
39 && $this->controller_class != $this->controller
41 echo " (resolves to " . $this->escape($this->controller_class) . ")";
48 <?php if (isset($this->exception) && $this->exception): ?>
52 <p><b><?php echo $this->escape($this->exception->getMessage()) ?></b></p>
57 <?php echo $this->exception->getTraceAsString() ?>