title: Codeigniter + Whoops
body: <p>I'm trying to setup <a href="https://filp.github.io/whoops/" rel="nofollow noreferrer">Whoops</a> on a <a href="https://codeigniter.com/" rel="nofollow noreferrer">Codeigniter 3</a> application.</p>
  
  <p>I installed Whoops with composer and calling it like this : </p>
  
  <pre><code>use Whoops\Handler\PrettyPageHandler;
  if (ENVIRONMENT == 'development') {
      $whoops = new \Whoops\Run;
      $whoops-&gt;pushHandler(new Whoops\Handler\PrettyPageHandler());
      $whoops-&gt;register();
  
      $handler = new PrettyPageHandler;
      $handler-&gt;setEditor('sublime');
  }
  </code></pre>
  
  <p>It works for warnings, notices and deprecated errors, but not for fatal errors.</p>
  
  <p>CodeIgniter seems to handle them before Whoops. Is there a way to modify this behavior?</p>