Simple Config file for a very basic site with no orion.
<?php
// set error_reporting
ini_set('error_reporting', E_ALL & ~(E_NOTICE | E_DEPRECATED | E_STRICT));
ini_set('display_errors', 'on');
defined('ENV') || define('ENV', 'development');
define('FS_ROOT', dirname(__FILE__).'/');
define('WS_ROOT', '/empty-application/');
define('SITE_TITLE', 'Empty Application');
define('SITE_DOMAIN', 'localhost');
define('SITE_URL', 'http://'.SITE_DOMAIN.WS_ROOT);
define('INCLUDES_DIR', FS_ROOT .'includes/');
define('LIB_DIR', FS_ROOT . 'lib/');
define('FUNCTIONS_DIR', LIB_DIR . 'functions/');
define('CLASSES_DIR', LIB_DIR . 'classes/');
define('MODELS_DIR', CLASSES_DIR . 'models/');
define('ASSETS_DIR', WS_ROOT . 'assets/');
define('JS_DIR', ASSETS_DIR . 'js/');
define('CSS_DIR', ASSETS_DIR . 'css/');
define('IMG_DIR', ASSETS_DIR . 'img/');
define('ASSET_VENDORS_DIR', ASSETS_DIR . 'vendor/');
// REQUIRED FILES
// load functions in the FUNCTIONS_DIR
foreach (new DirectoryIterator(FUNCTIONS_DIR) as $function) {
if ($function->isDot() || $function->isDir()) {
continue;
}
if (substr($function->getFilename(), -3) == 'php') {
require_once($function->getPathname());
}
}
// EXCEPTION HANDLING
define('ERROR_EMAIL_TO', '');
define('ERROR_EMAIL_FROM', 'errors@' . SITE_DOMAIN);
set_exception_handler('notify_exception');
set_error_handler('notify_error', error_reporting());
// AUTOLOAD
spl_autoload_register('autoload');
set_autoload_directories(array(
CLASSES_DIR,
));