core/web/View.php
public function getAssetUrl($assetName)
    {
        $assetName = ltrim($assetName, '\\');
        
        if (!isset($this->assetBundles[$assetName])) {
            throw new Exception("The AssetBundle '$assetName' is not registered.");
        }
        
        return $this->assetBundles[$assetName]->baseUrl;
    }
public function getAssetUrl($assetName)
    {
        $assetName = ltrim($assetName, '\\');
        
        if (!isset($this->assetBundles[$assetName])) {
            throw new Exception("The AssetBundle '$assetName' is not registered.");
        }
        
        return $this->assetBundles[$assetName]->baseUrl;
    }
public function getAssetUrl ( $ assetName ) { $ assetName = ltrim ( $ assetName , '\\' ) ; if ( ! isset ( $ this -> assetBundles [ $ assetName ] ) ) { throw new Exception ( "The AssetBundle '$assetName' is not registered." ) ; } return $ this -> assetBundles [ $ assetName ] -> baseUrl ; }
Get the url source for an asset.

When registering an asset `\app\assets\ResoucesAsset::register($this)` the $assetName
is `app\assets\ResourcesAsset`.

@param string $assetName The class name of the asset bundle (without the leading backslash)
@return string The internal base path to the asset file.
@throws Exception
Get the url source for an asset .