Top "Autoload" questions

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

Auto-load a module on python startup

I want IPython or the Python interpreter to auto-load a module when I start them. Is it possible? For example …

python module autoload ipython
Rails unable to autoload constant from file despite being defined in that file

This is a tricky one to explain. I have a module in another module namespace like so: # app/models/points/…

ruby-on-rails ruby autoload
autoload and multiple directories

I've just been looking at php's autoload() function. Seems a nice idea, but I'm not sure how it handles multiple …

php autoload
Recursively including all model subdirectories

How do you load all directories recursively in the models and lib directories? In application.rb, I have the lines: …

ruby-on-rails model autoload directory-structure
include path and the __autoload function in php

I am trying to convert several php scripts to use the __autoload function. Right now I can use the include …

php autoload include-path
Behat 3 - `FeatureContext` context class not found and can not be used

I have tried Behat 2.5 in the past and had no issues setting it up, but now I just downloaded Behat 3 …

php composer-php autoload behat
How to include a library to a Zend Framework 2 application using namespace based autoloading?

I created a subfolder MyNamespace in /vendor/ (is it the correct place for own libraries?) and want to use classes …

namespaces zend-framework2 autoload zend-autoloader
Using PHP namespaces in a Zend Framework (v1) application

Is it possible in the current stable version of the Zend Framework (1.11), to work with application classes using PHP namespaces? …

php zend-framework namespaces autoload zend-autoloader
How to disable autoload in jqGrid?

How to disable autoload in jqGrid and load data manually when I need it? Thanks.

javascript jqgrid autoload manual
Why specify the namespace when using psr-4 autoloading with Composer?

I'm a little confused with how I should be using psr-4 autoloading in Composer. Let's say I've got a folder …

php namespaces composer-php autoload psr-4