| 148 |
lars |
1 |
<table class="trace trace-as-text">
|
|
|
2 |
<thead class="trace-head">
|
|
|
3 |
<tr>
|
|
|
4 |
<th class="sf-toggle" data-toggle-selector="#trace-text-<?= $index; ?>" data-toggle-initial="<?= 1 === $index ? 'display' : ''; ?>">
|
|
|
5 |
<div class="trace-class">
|
|
|
6 |
<?php if ($numExceptions > 1) { ?>
|
|
|
7 |
<span class="text-muted">[<?= $numExceptions - $index + 1; ?>/<?= $numExceptions; ?>]</span>
|
|
|
8 |
<?php } ?>
|
|
|
9 |
<?= ($parts = explode('\\', $exception['class'])) ? end($parts) : ''; ?>
|
|
|
10 |
<span class="icon icon-close"><?= $this->include('assets/images/icon-minus-square-o.svg'); ?></span>
|
|
|
11 |
<span class="icon icon-open"><?= $this->include('assets/images/icon-plus-square-o.svg'); ?></span>
|
|
|
12 |
</div>
|
|
|
13 |
</th>
|
|
|
14 |
</tr>
|
|
|
15 |
</thead>
|
|
|
16 |
|
|
|
17 |
<tbody id="trace-text-<?= $index; ?>">
|
|
|
18 |
<tr>
|
|
|
19 |
<td>
|
|
|
20 |
<?php if ($exception['trace']) { ?>
|
|
|
21 |
<pre class="stacktrace">
|
|
|
22 |
<?php
|
|
|
23 |
echo $this->escape($exception['class']).":\n";
|
|
|
24 |
if ($exception['message']) {
|
|
|
25 |
echo $this->escape($exception['message'])."\n";
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
foreach ($exception['trace'] as $trace) {
|
|
|
29 |
echo "\n ";
|
|
|
30 |
if ($trace['function']) {
|
|
|
31 |
echo $this->escape('at '.$trace['class'].$trace['type'].$trace['function']).'('.(isset($trace['args']) ? $this->formatArgsAsText($trace['args']) : '').')';
|
|
|
32 |
}
|
|
|
33 |
if ($trace['file'] && $trace['line']) {
|
|
|
34 |
echo($trace['function'] ? "\n (" : 'at ').strtr(strip_tags($this->formatFile($trace['file'], $trace['line'])), [' at line '.$trace['line'] => '']).':'.$trace['line'].($trace['function'] ? ')' : '');
|
|
|
35 |
}
|
|
|
36 |
}
|
|
|
37 |
?>
|
|
|
38 |
</pre>
|
|
|
39 |
<?php } ?>
|
|
|
40 |
</td>
|
|
|
41 |
</tr>
|
|
|
42 |
</tbody>
|
|
|
43 |
</table>
|