Skip to content

Instantly share code, notes, and snippets.

@jlamim
Created November 8, 2016 21:04
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/26d7c69db36e95be00a1b66579990e9e to your computer and use it in GitHub Desktop.
Save jlamim/26d7c69db36e95be00a1b66579990e9e to your computer and use it in GitHub Desktop.
Whoops & CodeIgniter - WhoopsErrorHandler.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class WhoopsErrorHandler {
function WhoopsConfig()
{
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment