Top "Autoload" questions

autoload is a language convention which allows missing classes or method dependencies to be loaded on-demand.

Using Composer's Autoload

I have been looking around the net with no luck on this issue. I am using composer's autoload with this …

php autoload composer-php
Best way to load module/class from lib folder in Rails 3?

Since the latest Rails 3 release is not auto-loading modules and classes from lib anymore, what would be the best way …

ruby-on-rails class module autoload ruby-on-rails-3
How do I use PHP namespaces with autoload?

I get this error when I try to use autoload and namespaces: Fatal error: Class 'Class1' not found in /…

php autoload
What is Autoloading; How do you use spl_autoload, __autoload and spl_autoload_register?

I am learning advanced PHP standards and trying to implement new and useful methods. Earlier I was using __autoload just …

php autoload spl
Autoload classes from different folders

This is how I autoload all the classes in my controllers folder, # auto load controller classes function __autoload($class_name) { $…

php oop autoload
Rails 5: Load lib files in production

I've upgraded one of my apps from Rails 4.2.6 to Rails 5.0.0. The Upgrade Guide says, that the Autoload feature is now …

ruby-on-rails autoload ruby-on-rails-5
How to use spl_autoload() as __autoload() goes DEPRECATED

According to http://php.net/manual/en/language.oop5.autoload.php the magic function __autoload() will become DEPRECATED and DELETED (!) …

php deprecated autoload spl-autoloader
Autoloading classes in PHPUnit using Composer and autoload.php

I have just installed PHPUnit version 3.7.19 by Sebastian Bergmann via Composer and have written a class I would like to …

php namespaces phpunit autoload composer-php
CodeIgniter - unable to load requested class

Yes, I imagine you are thinking to say that this question is a possible duplicate, however it isn't as the …

php codeigniter autoload