CodeIgniter Forums
Codeigniter Hooks - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Codeigniter Hooks (/thread-45633.html)



Codeigniter Hooks - El Forum - 09-28-2011

[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?