php-censor/src/View/exception.phtml
2018-03-09 13:46:18 +07:00

23 lines
655 B
PHTML

<?php
/**
* @var $exception \Exception
*/
?>
<div class="panel panel-danger">
<div class="box-header">
<h2 class="box-title">Sorry, there was a problem</h2>
</div>
<?php if ($this->getUser()->getIsAdmin()): ?>
<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>