public function getURL($file_path = null)
    {
        if (!$this->base_url) {
            throw new BaseException('Unable to determine URL');
        }

        if (!$file_path) {
            return $this->base_url;
        }

        $u = $this->base_url;
        if (substr($u, -1) != '/') {
            $u .= '/';
        }

        return $u.$file_path;
    }
public function getURL($file_path = null)
    {
        if (!$this->base_url) {
            throw new BaseException('Unable to determine URL');
        }

        if (!$file_path) {
            return $this->base_url;
        }

        $u = $this->base_url;
        if (substr($u, -1) != '/') {
            $u .= '/';
        }

        return $u.$file_path;
    }
public function getURL ( $ file_path = null ) { if ( ! $ this -> base_url ) { throw new BaseException ( 'Unable to determine URL' ) ; } if ( ! $ file_path ) { return $ this -> base_url ; } $ u = $ this -> base_url ; if ( substr ( $ u , - 1 ) != '/' ) { $ u .= '/' ; } return $ u . $ file_path ; }
Returns how this location or file can be accessed through web
base url + relative path + file_path.
Returns how this location or file can be accessed through web base url + relative path + file_path .