コード例 #1
0
ファイル: Router.php プロジェクト: Insidexa/Framework
 /**
  * @param bool $absolute
  *
  * @return string
  */
 public function getBaseUrl($absolute = false)
 {
     if ($this->_baseUrl === NULL) {
         $this->_baseUrl = rtrim(dirname($this->getScriptUrl()), '\\/');
     }
     return ($absolute ? $this->request->getUrl() : '') . $this->_baseUrl;
 }