Commit 3516334e authored by Taylor Otwell's avatar Taylor Otwell

Clean up constant definitions.

parent 6154bef9
...@@ -9,28 +9,41 @@ ...@@ -9,28 +9,41 @@
*/ */
// -------------------------------------------------------------- // --------------------------------------------------------------
// Define the core framework paths. // The path to the application directory.
// -------------------------------------------------------------- // --------------------------------------------------------------
define('APP_PATH', realpath('../application').'/'); define('APP_PATH', realpath('../application').'/');
// --------------------------------------------------------------
// The path to the system directory.
// --------------------------------------------------------------
define('SYS_PATH', realpath('../system').'/'); define('SYS_PATH', realpath('../system').'/');
define('PUBLIC_PATH', realpath(__DIR__.'/'));
define('BASE_PATH', realpath('../').'/');
// -------------------------------------------------------------- // --------------------------------------------------------------
// Define various other framework paths. // Define various other framework paths.
// -------------------------------------------------------------- // --------------------------------------------------------------
define('CACHE_PATH', APP_PATH.'storage/cache/'); $constants = array(
define('CONFIG_PATH', APP_PATH.'config/'); 'BASE_PATH' => realpath('../').'/',
define('DATABASE_PATH', APP_PATH.'storage/db/'); 'CACHE_PATH' => APP_PATH.'storage/cache/',
define('LANG_PATH', APP_PATH.'lang/'); 'CONFIG_PATH' => APP_PATH.'config/',
define('LIBRARY_PATH', APP_PATH.'libraries/'); 'DATABASE_PATH' => APP_PATH.'storage/db/',
define('MODEL_PATH', APP_PATH.'models/'); 'LANG_PATH' => APP_PATH.'lang/',
define('PACKAGE_PATH', APP_PATH.'packages/'); 'LIBRARY_PATH' => APP_PATH.'libraries/',
define('ROUTE_PATH', APP_PATH.'routes/'); 'MODEL_PATH' => APP_PATH.'models/',
define('SESSION_PATH', APP_PATH.'storage/sessions/'); 'PACKAGE_PATH' => APP_PATH.'packages/',
define('STORAGE_PATH', APP_PATH.'storage/'); 'PUBLIC_PATH' => realpath(__DIR__).'/',
define('SYS_VIEW_PATH', SYS_PATH.'views/'); 'ROUTE_PATH' => APP_PATH.'routes/',
define('VIEW_PATH', APP_PATH.'views/'); 'SESSION_PATH' => APP_PATH.'storage/sessions/',
'STORAGE_PATH' => APP_PATH.'storage/',
'SYS_VIEW_PATH' => SYS_PATH.'views/',
'VIEW_PATH' => APP_PATH.'views/',
);
foreach ($constants as $key => $value)
{
define($key, $value);
}
unset($constants);
// -------------------------------------------------------------- // --------------------------------------------------------------
// Define the PHP file extension. // Define the PHP file extension.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment