Added Canvas 1.1.0, originally not under SCM so no historical development records...
[canvas.git] / library / AutoLoad.php
blob55d7cf7cfc95f184843ca084d826000e3e90e0c0
1 <?php
2 // @role AutoLoad
3 // @title Auto loader
4 // @author Matt Todd
5 // @date 2006-03-24 10:16AM
6 // @desc Handles autoloading models so that they all don't have to be loaded all the time
7 // (to keep load time and memory requirements to a minimum)
9 function __autoload($file) {
10 if(file_exists(Conventions::model_path($file))) include_once Conventions::model_path($file);
11 if(file_exists(Conventions::library_path($file))) include_once Conventions::library_path($file);
12 if(file_exists(Conventions::extension_path($file))) include_once Conventions::extension_path($file);