Esempio n. 1
0
*/
$route = array();
$route['app_root'] = $app_root;
$route['arguments'] = null;
$route['smart_url'] = null;
$route['real_path'] = $dispatch;
$route['extension'] = Router::CalcExtension($dispatch);
$route['mime'] = Router::CalcMime($route['extension']);
Env::Set('route', $route);
//	Do dispatch.
if ($io = file_exists($dispatch)) {
    $io = $op->Template($dispatch);
}
//	Dispatch was failed.
if ($io === false) {
    OnePiece5::StackError("\\Dispatch\\ was failed.\n (file={$dispatch}, URI={$_SERVER['REQUEST_URI']})", 'en');
}
/****************************************************************************************************
 * 
 * Finish
 * 
 ****************************************************************************************************/
if (Toolbox::isHtml()) {
    //	Debug.
    $temp = array();
    $temp['app_root'] = $app_root;
    $temp['chdir'] = $chdir;
    $temp['dispatch'] = $dispatch;
    $temp['uri'] = $uri;
    $temp['url'] = $url;
    $temp['match'] = $match;