public function pathToUrl($path) {
        if (empty($this->config['url_prefix'])) return '/'.$path;
        else if (empty($this->config['path'])) return rtrim($this->config['url_prefix'], '/').'/'.$path;
        else return rtrim($this->config['url_prefix'], '/').'/'.$this->relativePath($path);
    }
public function pathToUrl($path) {
        if (empty($this->config['url_prefix'])) return '/'.$path;
        else if (empty($this->config['path'])) return rtrim($this->config['url_prefix'], '/').'/'.$path;
        else return rtrim($this->config['url_prefix'], '/').'/'.$this->relativePath($path);
    }
public function pathToUrl ( $ path ) { if ( empty ( $ this -> config [ 'url_prefix' ] ) ) return '/' . $ path ; else if ( empty ( $ this -> config [ 'path' ] ) ) return rtrim ( $ this -> config [ 'url_prefix' ] , '/' ) . '/' . $ path ; else return rtrim ( $ this -> config [ 'url_prefix' ] , '/' ) . '/' . $ this -> relativePath ( $ path ) ; }
Append host to the path if it was defined

@param string $path Request path (with leading slash)
@return string
Append host to the path if it was defined