public function getBaseUrl()
    {
        if (null === $this->baseUrl) {
            $this->baseUrl = $this->prepareBaseUrl();
        }

        return $this->baseUrl;
    }
public function getBaseUrl()
    {
        if (null === $this->baseUrl) {
            $this->baseUrl = $this->prepareBaseUrl();
        }

        return $this->baseUrl;
    }
public function getBaseUrl ( ) { if ( null === $ this -> baseUrl ) { $ this -> baseUrl = $ this -> prepareBaseUrl ( ) ; } return $ this -> baseUrl ; }
Returns the root URL from which this request is executed.

The base URL never ends with a /.

This is similar to getBasePath(), except that it also includes the
script filename (e.g. index.php) if one exists.

@return string The raw URL (i.e. not urldecoded)
Returns the root URL from which this request is executed .