You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
debug-toolbar/init.php

19 lines
650 B
PHTML

<?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'))
11 years ago
{
$file = 'firephp/packages/core/lib/FirePHPCore/FirePHP.class';
$firePHP = Kohana::find_file('vendor', $file);
11 years ago
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
if (Kohana::$config->load('debug_toolbar.auto_render') === TRUE)
11 years ago
{
register_shutdown_function('Debugtoolbar::render', TRUE);
11 years ago
}