blob: 8ecc13cb6637ce588182b5c4f41e5ff0e5ee60bf [file] [log] [blame]
Derek Jones8ede1a22011-10-05 13:34:52 -05001######################
2Auto-loading Resources
3######################
4
5CodeIgniter comes with an "Auto-load" feature that permits libraries,
6helpers, and models to be initialized automatically every time the
7system runs. If you need certain resources globally throughout your
8application you should consider auto-loading them for convenience.
9
10The following items can be loaded automatically:
11
Andrey Andreev06e9d1d2012-10-11 16:31:01 +030012- Classes found in the "libraries" folder
Derek Jones8ede1a22011-10-05 13:34:52 -050013- Helper files found in the "helpers" folder
14- Custom config files found in the "config" folder
15- Language files found in the "system/language" folder
16- Models found in the "models" folder
17
18To autoload resources, open the application/config/autoload.php file and
19add the item you want loaded to the autoload array. You'll find
20instructions in that file corresponding to each type of item.
21
22.. note:: Do not include the file extension (.php) when adding items to
23 the autoload array.