blob: 259a4987ee89fb3cd323369bf9d611881c83581e [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
12- Core classes found in the "libraries" folder
13- 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.