php-censor/src/View/exception.phtml

23 lines
655 B
PHTML
Raw Normal View History

2018-01-13 12:23:19 +01:00
<?php
/**
* @var $exception \Exception
*/
?>
<div class="panel panel-danger">
<div class="box-header">
<h2 class="box-title">Sorry, there was a problem</h2>
</div>
2018-02-17 05:59:02 +01:00
<?php if ($this->getUser()->getIsAdmin()): ?>
2018-01-13 12:23:19 +01:00
<div class="box-body">
<strong>Message</strong>: <?= $exception->getMessage(); ?><br />
<strong>File</strong>: <?= $exception->getFile(); ?><br />
<strong>Line</strong>: <?= $exception->getLine(); ?><br />
<strong>Trace</strong>:
<pre style="white-space: pre-wrap"><?= $exception->getTraceAsString(); ?></pre>
</div>
<?php endif; ?>
</div>