AssetsExtension deprecated::getAssetUrl()

string getAssetUrl(string $path, string $packageName = null, bool $absolute = false, string|bool|null $version = null)

Returns the public path of an asset.

Absolute paths (i.e. http://...) are returned unmodified.

Parameters

string $path A public path
string $packageName The name of the asset package to use
bool $absolute Whether to return an absolute URL or a relative one
string|bool|null $version A specific version

Return Value

string A public path which takes into account the base path and URL path
doc_Symfony
2016-10-28 06:06:07
Comments
Leave a Comment

Please login to continue.