1 <h1><?php echo $this->translate('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 = $this->translate('The requested controller was unable to dispatch the request.');
12 case 'error-controller-not-found':
13 $reasonMessage = $this->translate('The requested controller could not be mapped to an existing controller class.');
15 case 'error-controller-invalid':
16 $reasonMessage = $this->translate('The requested controller was not dispatchable.');
18 case 'error-router-no-match':
19 $reasonMessage = $this->translate('The requested URL could not be matched by routing.');
22 $reasonMessage = $this->translate('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): ?>
34 <dt><?php echo $this->translate('Controller') ?>:</dt>
35 <dd><?php echo $this->escapeHtml($this->controller) ?>
37 if (isset($this->controller_class)
38 && $this->controller_class
39 && $this->controller_class != $this->controller
41 echo '(' . sprintf($this->translate('resolves to %s'), $this->escapeHtml($this->controller_class)) . ')';
49 <?php if (isset($this->display_exceptions) && $this->display_exceptions): ?>
51 <?php if(isset($this->exception) && $this->exception instanceof Exception): ?>
53 <h2><?php echo $this->translate('Additional information') ?>:</h2>
54 <h3><?php echo get_class($this->exception); ?></h3>
56 <dt><?php echo $this->translate('File') ?>:</dt>
58 <pre class="prettyprint linenums"><?php echo $this->exception->getFile() ?>:<?php echo $this->exception->getLine() ?></pre>
60 <dt><?php echo $this->translate('Message') ?>:</dt>
62 <pre class="prettyprint linenums"><?php echo $this->exception->getMessage() ?></pre>
64 <dt><?php echo $this->translate('Stack trace') ?>:</dt>
66 <pre class="prettyprint linenums"><?php echo $this->exception->getTraceAsString() ?></pre>
70 $e = $this->exception->getPrevious();
74 <h2><?php echo $this->translate('Previous exceptions') ?>:</h2>
78 <h3><?php echo get_class($e); ?></h3>
80 <dt><?php echo $this->translate('File') ?>:</dt>
82 <pre class="prettyprint linenums"><?php echo $e->getFile() ?>:<?php echo $e->getLine() ?></pre>
84 <dt><?php echo $this->translate('Message') ?>:</dt>
86 <pre class="prettyprint linenums"><?php echo $e->getMessage() ?></pre>
88 <dt><?php echo $this->translate('Stack trace') ?>:</dt>
90 <pre class="prettyprint linenums"><?php echo $e->getTraceAsString() ?></pre>
95 $e = $e->getPrevious();
103 <h3><?php echo $this->translate('No Exception available') ?></h3>