EllisLab text mark
Advanced Search
     
Codeigniter Hooks
Posted: 29 September 2011 02:34 AM
Joined: 2010-12-14
58 posts

error

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


$hook['pre_system'][] = array(
  
'class'  => '',
  
'function' => 'error_handling',
  
'filename' => 'PHPError.php',
  
'filepath' => 'hooks'
 
); 
<?php
function error_handling()
{
 $CI 
=& get_instance();
 
$CI->config->item('base_url');

any idea guys?