spl-autoload-register

What's the principle of autoloading in PHP?

spl_autoload_register can do this kind of job,but I don't understand how is that kind of job done? spl_autoload_register(array('Doctrine', 'autoload')); ...

PHP Autloading in Namespaces

Hey everyone, I have had a slight problem with autoloading in my namespace. As shown on the PHP manual here: http://us.php.net/manual/en/language.namespaces.rules.php you should be able to autoload namespace functions with a full qualified name e.g. \glue\common\is_email(). Thing is I have a function spl_autoload_register(array($import...

PHP spl_autoload_register

I am trying to take advantage of autoloading in PHP. I have various classes in different directories, and so I have bootstrapped the autoloading as follows: function autoload_services($class_name) { $file = 'services/' . $class_name. '.php'; if (file_exists($file)) { require_once($file); } } function autoload_vo...

Using the PHP spl_autoload_register() with Codeigniter

Hello, 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 http://stackoverflow.com/questions/3710480/php-spl-autoload-register but I dont know how to target the CodeIgniter autoload. Im new to OOP and Code...