2015-08-28 23:43:35 -05:00
|
|
|
<?php
|
2016-02-02 10:53:32 -06:00
|
|
|
|
2017-01-15 23:35:14 -06:00
|
|
|
// Location to the Paths config file.
|
|
|
|
// This should be the only line you need to
|
|
|
|
// edit in this file.
|
|
|
|
$pathsPath = '../application/Config/Paths.php';
|
2016-05-09 00:54:39 -05:00
|
|
|
|
2015-08-28 23:43:35 -05:00
|
|
|
// Path to the front controller (this file)
|
2016-03-29 10:48:58 +02:00
|
|
|
define('FCPATH', __DIR__.DIRECTORY_SEPARATOR);
|
2015-08-28 23:43:35 -05:00
|
|
|
|
2016-06-23 00:29:44 -05:00
|
|
|
/*
|
|
|
|
*---------------------------------------------------------------
|
2017-01-15 23:06:39 -06:00
|
|
|
* BOOTSTRAP THE APPLICATION
|
2016-06-23 00:29:44 -05:00
|
|
|
*---------------------------------------------------------------
|
2017-01-15 23:06:39 -06:00
|
|
|
* This process sets up the path constants, loads and registers
|
|
|
|
* our autoloader, along with Composer's, loads our constants
|
|
|
|
* and fires up an environment-specific bootstrapping.
|
2016-03-30 07:30:02 +09:00
|
|
|
*/
|
|
|
|
|
2017-01-15 23:06:39 -06:00
|
|
|
// Ensure the current directory is pointing to the front controller's directory
|
|
|
|
chdir(__DIR__);
|
2016-03-30 16:19:46 +09:00
|
|
|
|
2017-01-15 23:35:14 -06:00
|
|
|
// Load our paths config file
|
|
|
|
require $pathsPath;
|
|
|
|
$paths = new Config\Paths();
|
|
|
|
|
|
|
|
$app = require rtrim($paths->systemDirectory,'/ ').'/bootstrap.php';
|
2016-03-30 16:19:46 +09:00
|
|
|
|
2015-08-28 23:43:35 -05:00
|
|
|
/*
|
2017-01-15 23:06:39 -06:00
|
|
|
*---------------------------------------------------------------
|
|
|
|
* LAUNCH THE APPLICATION
|
|
|
|
*---------------------------------------------------------------
|
|
|
|
* Now that everything is setup, it's time to actually fire
|
|
|
|
* up the engines and make this app do it's thang.
|
2015-08-28 23:43:35 -05:00
|
|
|
*/
|
2017-01-15 23:06:39 -06:00
|
|
|
$app->run();
|