CodeIgniter Forums
Why can't you autoload drivers? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Why can't you autoload drivers? (/showthread.php?tid=41315)



Why can't you autoload drivers? - El Forum - 05-04-2011

[eluser]moodh[/eluser]
Hi, I dug through the autoloader-code in Loader.php and noticed you can't autoload drivers.
How come? Autoloading a cache driver would be very neat.


Why can't you autoload drivers? - El Forum - 05-04-2011

[eluser]pickupman[/eluser]
I think this is partly due to the fact that drivers for classes other than the database is new. The javascript driver is even completed as shown in the guide. I have tried a pull request for this on bitbucket along with following some of the open tags. Also, with the cache driver, it really should be configured for the cache system (file,memory, etc). Maybe, we will see this in the config file some day.