getBaseUrl() public méthode

It defaults to [[Request::baseUrl]]. This is mainly used when [[enablePrettyUrl]] is true and [[showScriptName]] is false.
public getBaseUrl ( ) : string
Résultat string the base URL that is used by [[createUrl()]] to prepend to created URLs.
 /**
  * @inheritdoc
  */
 public function getBaseUrl()
 {
     return parent::getBaseUrl() . ($this->_language != Yii::$app->language || $this->_language != Yii::$app->request->getDefaultLanguage() ? '/' . $this->_language : '');
 }
 /**
  * 
  * @return type
  */
 public function getBaseUrl()
 {
     $this->setBaseUrl(MultiLanguage::getBaseUrl());
     return parent::getBaseUrl();
 }