Beispiel #1
0
 /**
  * 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);
     }
 }
Beispiel #2
0
 /**
  * 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);
     }
 }