本文整理匯總了PHP中seo::parseURI方法的典型用法代碼示例。如果您正苦於以下問題:PHP seo::parseURI方法的具體用法?PHP seo::parseURI怎麽用?PHP seo::parseURI使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類seo
的用法示例。
在下文中一共展示了seo::parseURI方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: parseRequest
/**
* The entrance of parseing request. According to the requestType, call related methods.
*
* @access public
* @return void
*/
public function parseRequest()
{
if ($this->config->requestType == 'PATH_INFO') {
$this->parsePathInfo();
$this->URI = seo::parseURI($this->URI);
$this->setRouteByPathInfo();
} elseif ($this->config->requestType == 'GET') {
$this->parseGET();
$this->setRouteByGET();
} else {
$this->triggerError("The request type {$this->config->requestType} not supported", __FILE__, __LINE__, $exit = true);
}
}
示例2: parseRequest
/**
* The entrance of parseing request. According to the requestType, call related methods.
*
* @access public
* @return void
*/
public function parseRequest()
{
if ($this->config->requestType == 'PATH_INFO') {
$this->parsePathInfo();
$langCode = $this->config->langsShortcuts[$this->clientLang];
if (strpos($this->URI, $langCode) === 0) {
$this->URI = substr($this->URI, strlen($langCode) + 1);
}
$this->URI = seo::parseURI($this->URI);
$this->setRouteByPathInfo();
} elseif ($this->config->requestType == 'GET') {
$this->parseGET();
$this->setRouteByGET();
} else {
$this->triggerError("The request type {$this->config->requestType} not supported", __FILE__, __LINE__, $exit = true);
}
}