Example #1
0
 public static function setRoutes($routes)
 {
     if (isset($routes[0])) {
         self::$_routingTable = $routes[0];
     } else {
         /** 解析路由配置 */
         $parser = new Router_Parser($routes);
         self::$_routingTable = $parser->parse();
     }
 }