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. |
Please login to continue.