Example #1
0
 public static function dispatch()
 {
     global $config;
     preg_match('@([^?]+)@', $_SERVER['REQUEST_URI'], $match);
     $uri = preg_replace('/\\/\\//', '/', $match[1]);
     list(self::$folder, self::$action, $params) = self::explodeUri($uri);
     View::$theme =& $config['theme'];
     View::$site_content = self::fetchContent(self::$folder, self::$action, $params, true);
     View::out(self::$folder);
 }