miniMVC/app/errors/error.php

25 lines
716 B
PHP
Raw Normal View History

2011-12-27 13:24:28 -05:00
<div class="error">
<h4>A PHP Error was encountered</h4>
<p>Severity: <?php echo $severity; ?></p>
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $filepath; ?></p>
<p>Line Number: <?php echo $line; ?></p>
<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
<p>Backtrace: </p>
<?php foreach(debug_backtrace() as $error): ?>
<?php if(isset($error['file']) && ! stristr($error['file'], SYS_DIR)): ?>
<p style="margin-left:10px">
File: <?php echo $error['file'] ?><br />
Line: <?php echo $error['line'] ?><br />
Function: <?php echo $error['function'] ?>
</p>
<?php endif ?>
<?php endforeach ?></p>
<?php endif ?>
</div>