Using the PHP spl_autoload_register() with Codeigniter
Please how can I use spl_autoload_register() with Codeigniter? I need to do this because Im using Codeigniter with another framework which also uses autoload. I saw something here PHP spl_autoload_register but I dont know how to target the CodeIgniter autoload . Im new to OOP and Codeigniter. Thanks a lot! The above link has this: function autoload_services($class_name){ $file = 'services/' . $class_name. '.php'; if (file_exists($file)){ require_once($file); } } function autoload_vos($class_name){ $file = 'vos/' . $class_name. '.php'; if (file_exists($file)){ require_once($file); } } function