start.php 1.31 KB
Newer Older
1 2 3 4
<?php

/*
|--------------------------------------------------------------------------
5
| Auto-Loader Mappings
6 7
|--------------------------------------------------------------------------
|
8 9 10
| Laravel uses a simple array of class to path mappings to drive the class
| auto-loader. This simple approach helps avoid the performance problems
| of searching through directories by convention.
11
|
12 13 14
| Registering a mapping couldn't be easier. Just pass an array of class
| to path maps into the "map" function of Autoloader. Then, when you
| want to use that class, just use it. It's simple!
15 16 17
|
*/

18 19
Autoloader::map(array(
	'Base_Controller' => path('app').'controllers/base.php',
20 21 22 23
));

/*
|--------------------------------------------------------------------------
24
| Auto-Loader PSR-0 Directories
25 26
|--------------------------------------------------------------------------
|
27 28 29
| The Laravel auto-loader can search directories for files using the PSR-0
| naming convention. This convention basically organizes classes by using
| the class namespace to indicate the directory structure.
30
|
31 32 33
| So you don't have to manually map all of your models, we've added the
| models and libraries directories for you. So, you can model away and
| the auto-loader will take care of the rest.
34 35 36
|
*/

37 38 39
Autoloader::psr(array(
	path('app').'models',
	path('app').'libraries',
40
));