• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Codeigniter Hooks

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.