PHP Classes

File: application/views/errors/html/error_exception.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   CodeIgniter ion Auth Login   application/views/errors/html/error_exception.php   Download  
File: application/views/errors/html/error_exception.php
Role: Example script
Content type: text/plain
Description: Example script
Class: CodeIgniter ion Auth Login
Manage user records in a database with CodeIgniter
Author: By
Last change:
Date: 6 years ago
Size: 887 bytes


Class file image Download
('BASEPATH') OR exit('No direct script access allowed');

<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>An uncaught Exception was encountered</h4>

<p>Type: <?php echo get_class($exception); ?></p>
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $exception->getFile(); ?></p>
<p>Line Number: <?php echo $exception->getLine(); ?></p>


    <?php foreach ($exception->getTrace() as $error): ?>

        <?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>

            <p style="margin-left:10px">
            File: <?php echo $error['file']; ?><br />
            Line: <?php echo $error['line']; ?><br />
            Function: <?php echo $error['function']; ?>
        <?php endif ?>

    <?php endforeach ?>

<?php endif ?>