Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

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