Skip to content

Instantly share code, notes, and snippets.

@jlamim
Created November 8, 2016 21:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlamim/3c5d95da503797fd2bd50f3f138bd671 to your computer and use it in GitHub Desktop.
Save jlamim/3c5d95da503797fd2bd50f3f138bd671 to your computer and use it in GitHub Desktop.
Whoops & CodeIgniter - hooks.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$hook['pre_system'] = array(
'class' => 'WhoopsErrorHandler',
'function' => 'WhoopsConfig',
'filename' => 'WhoopsErrorHandler.php',
'filepath' => 'hooks',
'params' => array()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment