Example #1
0
 /**
  * Check whether the current base page is correct or not
  *
  * @throws HttpError
  */
 private function checkBaseURI()
 {
     if (substr($this->request->getPage(), 0, strlen($this->base_uri)) != $this->base_uri) {
         throw new HttpError(404);
     }
 }