source: src/webapp/apigility/module/Application/view/error/404.phtml@ cb39a77

debian/bullseye
Last change on this file since cb39a77 was 74c3571, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago

Added gnuboat_mapservice:

it is a REST webservice designed with Apigility to allow the user to upload data, create waters and so on

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