1
0
Fork 0
mirror of https://github.com/Oreolek/debug-toolbar.git synced 2024-05-09 12:38:16 +03:00
debug-toolbar/init.php

12 lines
634 B
PHP
Raw Permalink Normal View History

<?php defined('SYSPATH') or die('No direct script access.');
// Load FirePHP if it enabled in config
if(Kohana::$config->load('debug_toolbar.firephp_enabled') === TRUE && ! class_exists('FirePHP') ) {
2011-08-03 08:00:48 +03:00
$file = 'firephp/packages/core/lib/FirePHPCore/FirePHP.class';
$firePHP = Kohana::find_file('vendor', $file);
if( ! $firePHP) throw new Kohana_Exception('The FirePHP :file could not be found', array(':file'=>$file));
require_once $firePHP;
}
// Render Debug Toolbar on the end of application execution
2011-08-29 22:44:14 +03:00
if (Kohana::$config->load('debug_toolbar.auto_render') === TRUE)
register_shutdown_function('debugtoolbar::render', TRUE);