Beispiel #1
0
/*
 * Set your applications current timezone
 */
date_default_timezone_set(System\Config::app('timezone', 'UTC'));
/**
 * Import helpers
 */
require APP . 'helpers' . EXT;
/**
 * Import defined routes
 */
require APP . 'routes' . EXT;
/**
 * Error handling
 */
System\Error::register();
/**
 * Set input
 */
System\Input::detect(System\Request::method());
/**
 * Read session data
 */
System\Session::start();
/**
 * Route the request
 */
$response = System\Router::create()->dispatch();
/**
 * Output stuff
 */
Beispiel #2
0
function L($msg, $code = 0)
{
    $error = new System\Error($msg, $code);
    $error->log();
}