PHP Classes

File: core/bootstrap.php

Recommend this page to a friend!
  Classes of Italo Lelis de Vietro  >  Easy Framework  >  core/bootstrap.php  >  Download  
File: core/bootstrap.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: Easy Framework
Full stack Web application framework with MVC
Author: By
Last change: include the routes file, that file will contain all the app routes
More readable bootstrap system
Date: 9 years ago
Size: 1,723 bytes


Class file image Download

 * Carregamento das funcionalidades b├ísicas do EasyFramework.
 * @license The MIT License
 * @copyright Copyright 2011, EasyFramework (
/* Path to the temporary files directory. */
define('TMP', APP_PATH . 'tmp' . DS);
/* Path to the cache files directory. It can be shared between hosts in a multi-server setup. */
define('CACHE', TMP . 'cache' . DS);
/* Path to the log files directory. It can be shared between hosts in a multi-server setup. */
define('LOGS', TMP . 'logs' . DS);

/* Basic classes */
require CORE . 'basics.php';
CORE . 'Common' . DS . 'App.php';
CORE . 'Error' . DS . 'Exceptions.php';

/* Register the autoload function for the Lazy load */
spl_autoload_register(array('App', 'load'));

/* Build the App configs */

App::uses('Cache', 'Core/Cache');
App::uses('Debug', 'Core/Debug');
App::uses('Config', 'Core/Common');
App::uses('Error', 'Core/Error');

App::uses('Inflector', 'Core/Common');
App::uses('ClassRegistry', 'Core/Utility');

App::uses('Dispatcher', 'Core/Dispatcher');
App::uses('Mapper', 'Core/Dispatcher');

App::uses('Controller', 'Core/Controller');
App::uses('Model', 'Core/Model');
App::uses('View', 'Core/View');

App::uses('Security', 'Core/Security');

App::uses('AppController', 'App/controllers');
App::uses('AppModel', 'App/models');

App::import('Config', array('database', 'settings', 'routes'));

/* Handle the Exceptions and Errors */

For more information send a message to info at phpclasses dot org.