web\AssetManager getAssetUrl()

getAssetUrl() public method

Returns the actual URL for the specified asset.

The actual URL is obtained by prepending either $baseUrl or yii\web\AssetManager::$baseUrl to the given asset path.

public string getAssetUrl ( $bundle, $asset )
$bundle yii\web\AssetBundle

The asset bundle which the asset file belongs to

$asset string

The asset path. This should be one of the assets listed in \yii\web\js or \yii\web\css.

return string

The actual URL for the specified asset.

doc_Yii
2016-10-30 17:14:36
Comments
Leave a Comment

Please login to continue.