private static function getRouteList() { if (!self::$route) { $config = bu::config('route'); $newRoute = array(); if ($config) { foreach ($config as $k => $v) { $newK = str_replace(':any', '.*', $k); $newK = str_replace(':num', '[0-9]+', $newK); $newRoute[$newK] = $v; } } self::$route = $newRoute; } return self::$route; }
private static function prepareHttpString() { BuRoute::setHttpString(self::$httpString); $httpString = BuRoute::doIt(); self::$httpString = $httpString; }