Move the configurable item to top of index.php
This commit is contained in:
parent
d9e0d5fca6
commit
d4d8b5d9c7
11
index.php
11
index.php
@ -3,6 +3,11 @@
|
|||||||
* Here begins everything!
|
* Here begins everything!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Well, whose list is it?
|
||||||
|
*/
|
||||||
|
define('WHOSE', "Tim's");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Joins paths together. Variadic to take an
|
* Joins paths together. Variadic to take an
|
||||||
* arbitrary number of arguments
|
* arbitrary number of arguments
|
||||||
@ -11,17 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
function _dir() { return implode(DIRECTORY_SEPARATOR, func_get_args()); }
|
function _dir() { return implode(DIRECTORY_SEPARATOR, func_get_args()); }
|
||||||
|
|
||||||
|
|
||||||
define('ROOT_DIR', __DIR__);
|
define('ROOT_DIR', __DIR__);
|
||||||
define('APP_DIR', _dir(ROOT_DIR, 'app'));
|
define('APP_DIR', _dir(ROOT_DIR, 'app'));
|
||||||
define('CONF_DIR', _dir(APP_DIR, 'config'));
|
define('CONF_DIR', _dir(APP_DIR, 'config'));
|
||||||
define('BASE_DIR', _dir(APP_DIR, 'base'));
|
define('BASE_DIR', _dir(APP_DIR, 'base'));
|
||||||
|
|
||||||
/**
|
|
||||||
* Well, whose list is it?
|
|
||||||
*/
|
|
||||||
define('WHOSE', "Tim's");
|
|
||||||
|
|
||||||
// Load config and global functions
|
// Load config and global functions
|
||||||
$config = require _dir(APP_DIR, '/config/config.php');
|
$config = require _dir(APP_DIR, '/config/config.php');
|
||||||
require _dir(BASE_DIR, '/functions.php');
|
require _dir(BASE_DIR, '/functions.php');
|
||||||
|
Loading…
Reference in New Issue
Block a user