Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 732 Bytes
<?php
// Define some global constants to make including easier
define('ROOT', realpath(dirname(__FILE__)) . '/');
define('APPLICATION_PATH', ROOT . 'application/');
define('CONFIG_PATH', ROOT . 'config/');
define('SYSTEM_PATH', ROOT . 'system/');
// Define the autoloader strategy
require(SYSTEM_PATH . 'autoloader.php');
spl_autoload_register('Autoloader::load');
// Include the modules
Autoloader::module('model');
// Include the database configuration
require(CONFIG_PATH . 'database.php');
// Include the routes
require(CONFIG_PATH . '/routes.php');
// Include the site-wide helpers
require(APPLICATION_PATH . '/helpers/global.php');
// Dispatch the request for the give URL
Dispatcher::dispatch();