public function getBaseUrl($absolute = false)
    {
        $url = array();
        if ($absolute) {
            $url[] = $this->baseUrl !== null ? rtrim($this->baseUrl, '/') : Yii::app()->request->baseUrl;
        }
        $url[] = $this->fileDir;
        return rtrim(implode('/', $url), '/');
    }
public function getBaseUrl($absolute = false)
    {
        $url = array();
        if ($absolute) {
            $url[] = $this->baseUrl !== null ? rtrim($this->baseUrl, '/') : Yii::app()->request->baseUrl;
        }
        $url[] = $this->fileDir;
        return rtrim(implode('/', $url), '/');
    }
public function getBaseUrl ( $ absolute = false ) { $ url = array ( ) ; if ( $ absolute ) { $ url [ ] = $ this -> baseUrl !== null ? rtrim ( $ this -> baseUrl , '/' ) : Yii :: app ( ) -> request -> baseUrl ; } $ url [ ] = $ this -> fileDir ; return rtrim ( implode ( '/' , $ url ) , '/' ) ; }
Returns the url to the files folder.
@param boolean $absolute whether to return an absolute url.
@return string the url.
Returns the url to the files folder .