private function ParsePath() { if (!isset($_GET['STACKMOBILE_ORIGINAL_URI'])) { throw new Exception('Unable to determine the original request URI.'); } URLManager::$current_url = $_GET['STACKMOBILE_ORIGINAL_URI']; $url_entry = URLManager::MatchURLEntry(); // Check the return value to see if an entry matched if ($url_entry !== FALSE) { // Extract the information from the URL manager $this->controller = $url_entry->GetController(); $this->action = $url_entry->GetAction(); $this->parameters = $url_entry->GetParameters(); } else { throw new Exception('The specified page was not found.'); } }