Tweaking front controller.
This commit is contained in:
@@ -11,39 +11,34 @@
|
|||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// The path to the application directory.
|
// The path to the application directory.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
define('APP_PATH', realpath('../application').'/');
|
$application = '../application';
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// The path to the system directory.
|
// The path to the system directory.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
define('SYS_PATH', realpath($system = '../system').'/');
|
$system = '../system';
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
|
||||||
// The path to the public directory.
|
|
||||||
// --------------------------------------------------------------
|
|
||||||
define('PUBLIC_PATH', realpath(__DIR__).'/');
|
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// The path to the packages directory.
|
// The path to the packages directory.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
define('PACKAGE_PATH', realpath('../packages').'/');
|
$packages = '../packages';
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// The path to the modules directory.
|
// The path to the modules directory.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
define('MODULE_PATH', realpath('../modules').'/');
|
$modules = '../modules';
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// The path to the storage directory.
|
// The path to the storage directory.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
define('STORAGE_PATH', realpath('../storage').'/');
|
$storage = '../storage';
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// The path to the directory containing the system directory.
|
// The path to the public directory.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
define('BASE_PATH', realpath(str_replace('system', '', $system)).'/');
|
$public = __DIR__;
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Launch Laravel.
|
// Launch Laravel.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
require SYS_PATH.'laravel.php';
|
require $system.'/laravel.php';
|
||||||
Reference in New Issue
Block a user