Created
January 13, 2016 14:33
-
-
Save necota/bedcb05a661cfbf2d946 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(-1); | |
ini_set('display_errors', 1); | |
/** | |
* Website document root | |
*/ | |
define('DOCROOT', __DIR__.DIRECTORY_SEPARATOR); | |
/** | |
* Path to the application directory. | |
*/ | |
define('APPPATH', realpath(__DIR__.'/../app/').DIRECTORY_SEPARATOR); | |
/** | |
* Path to the default packages directory. | |
*/ | |
define('PKGPATH', realpath(__DIR__.'/../packages/').DIRECTORY_SEPARATOR); | |
/** | |
* The path to the framework core. | |
*/ | |
define('COREPATH', realpath(__DIR__.'/../core/').DIRECTORY_SEPARATOR); | |
// Get the start time and memory for use later | |
defined('FUEL_START_TIME') or define('FUEL_START_TIME', microtime(true)); | |
defined('FUEL_START_MEM') or define('FUEL_START_MEM', memory_get_usage()); | |
// Load in the Fuel autoloader | |
if ( ! file_exists(COREPATH.'classes'.DIRECTORY_SEPARATOR.'autoloader.php')) | |
{ | |
die('No composer autoloader found. Please run composer to install the FuelPHP framework dependencies first!'); | |
} | |
// Activate the framework class autoloader | |
require COREPATH.'classes'.DIRECTORY_SEPARATOR.'autoloader.php'; | |
class_alias('Fuel\\Core\\Autoloader', 'Autoloader'); | |
// Boot the app... | |
require APPPATH.'bootstrap.php'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment