diff --git a/application/config/config.php b/application/config/config.php index 80c8943e9..e88509fbb 100755 --- a/application/config/config.php +++ b/application/config/config.php @@ -508,14 +508,12 @@ $config['proxy_ips'] = ''; | Autoload Custom Controllers |-------------------------------------------------------------------------- | -Don't work so sometime delete this*/ +| It's working, so don't delete this :D +*/ spl_autoload_register ( function ($class) { + // error_log("__autoload"); if (substr($class,0,3) !== 'CI_' && substr($class,0,4) !== 'FHC_') - { - if (file_exists($file = APPPATH . 'core/' . $class . '.php')) - { - require_once $file; - } - } + if (file_exists($file = APPPATH . 'core/' . $class . '.php')) + require_once $file; });