public function getAsset($asset, $extensionId = null)
    {
        if( ! is_null($extensionId)){
            $url = $this->getJsBaseWww($extensionId) . FsUtils::normalizePath($asset);
        } else {
            $url = $this->getAssetBaseUrl() . FsUtils::normalizePath($asset);
        }

        $isFolder = (substr_compare($url, '/', strlen($url) - 1) === 0);

        $buster = $this->getCacheBuster();
        if($buster != false && $isFolder == false) {
            $url .= '?' . self::BUSTER_QUERY_KEY . '=' . urlencode($buster);
        }

        return $url;
    }
public function getAsset($asset, $extensionId = null)
    {
        if( ! is_null($extensionId)){
            $url = $this->getJsBaseWww($extensionId) . FsUtils::normalizePath($asset);
        } else {
            $url = $this->getAssetBaseUrl() . FsUtils::normalizePath($asset);
        }

        $isFolder = (substr_compare($url, '/', strlen($url) - 1) === 0);

        $buster = $this->getCacheBuster();
        if($buster != false && $isFolder == false) {
            $url .= '?' . self::BUSTER_QUERY_KEY . '=' . urlencode($buster);
        }

        return $url;
    }
public function getAsset ( $ asset , $ extensionId = null ) { if ( ! is_null ( $ extensionId ) ) { $ url = $ this -> getJsBaseWww ( $ extensionId ) . FsUtils :: normalizePath ( $ asset ) ; } else { $ url = $ this -> getAssetBaseUrl ( ) . FsUtils :: normalizePath ( $ asset ) ; } $ isFolder = ( substr_compare ( $ url , '/' , strlen ( $ url ) - 1 ) === 0 ) ; $ buster = $ this -> getCacheBuster ( ) ; if ( $ buster != false && $ isFolder == false ) { $ url .= '?' . self :: BUSTER_QUERY_KEY . '=' . urlencode ( $ buster ) ; } return $ url ; }
Get the full URL of an asset or a folder

@param string $asset the asset or folder path, relative, from the views folder
@param string $extensionId  if the asset is relative to an extension base www (optional)
@return string the asset URL
Get the full URL of an asset or a folder