CodeIgniter Forums

Full Version: Codeigniter Hooks
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]nuclearmaker[/eluser]
error
Quote:Fatal error: Class 'CI_Controller' not found in C:\Program Files\EasyPHP-5.3.8.0\www\codeigniter\system\core\CodeIgniter.php on line 245



Code:
$hook['pre_system'][] = array(
  'class'  => '',
  'function' => 'error_handling',
  'filename' => 'PHPError.php',
  'filepath' => 'hooks'
);

Code:
<?php
function error_handling()
{
$CI =& get_instance();
$CI->config->item('base_url');
}

any idea guys?