public static function parseUrl($url) { $retArray = array(); $tempArray = array(); $urlArray = explode("/", cut_slash($url)); // get the page $page = OLIVRoute::getPage($urlArray); // get the path to the page to open $path = OLIVRoute::makePath($page); // if rest, create val parameter for ($x = 0; $x < count($path); $x++) { array_shift($urlArray); } // return route information aray return array("url" => $page, "val" => implode("/", $urlArray), "path" => $path); // return parameters }