Files
spa-api/application/start.php

40 lines
1.3 KiB
PHP
Raw Normal View History

2012-01-16 13:59:24 -06:00
<?php
/*
|--------------------------------------------------------------------------
2012-02-12 14:48:36 -06:00
| Auto-Loader Mappings
2012-01-16 13:59:24 -06:00
|--------------------------------------------------------------------------
|
2012-02-12 14:48:36 -06:00
| 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.
2012-01-16 13:59:24 -06:00
|
2012-02-12 14:48:36 -06:00
| 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!
2012-01-16 13:59:24 -06:00
|
*/
2012-02-12 14:48:36 -06:00
Autoloader::map(array(
'Base_Controller' => path('app').'controllers/base.php',
2012-01-16 13:59:24 -06:00
));
/*
|--------------------------------------------------------------------------
2012-02-12 14:48:36 -06:00
| Auto-Loader PSR-0 Directories
2012-01-16 13:59:24 -06:00
|--------------------------------------------------------------------------
|
2012-02-12 14:48:36 -06:00
| 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.
2012-01-16 13:59:24 -06:00
|
2012-02-12 14:48:36 -06:00
| 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.
2012-01-16 13:59:24 -06:00
|
*/
2012-02-12 14:48:36 -06:00
Autoloader::psr(array(
path('app').'models',
path('app').'libraries',
2012-01-16 13:59:24 -06:00
));