[eluser]Phil Sturgeon[/eluser]
[quote author="techgnome" date="1291233042"]I'm curious about that as well. I don't necessarily always want everything to load everytime. Call me a control freak, but there are somethings I want to have control over. And that includes loading only the things I need when I need them. Loading models & libraries still needs to be selective.
-tg[/quote]
You are confusing CodeIgniter autoloading with PHP autoloading. Easy to do, they are called the same thing.
CodeIgniter Autoload = Always load X on each page call.
PHP Autoload = Lazyloading = Load this when I ask for it, without me actually loading it.
PHP autoloading works like this:
Code:
$user = new User($id);
Trouble is, we don't know if that is a library or a model, so we'd have to check both folders. Which is more important? Should that also be added to the $this-> superglobal so you can use it in "the CI way" and have it loaded once throughout your application?
The autoload approach and the CI approach are fundamentally pretty different so it would be tough to implement without changing entirely how the framework works.