AssetsHelper::getUrl()

string getUrl(string $path, string $packageName = null)

Returns the public url/path of an asset.

If the package used to generate the path is an instance of UrlPackage, you will always get a URL and not a path.

Parameters

string $path A public path
string $packageName The name of the asset package to use

Return Value

string The public path of the asset
doc_Symfony
2016-10-28 06:06:08
Comments
Leave a Comment

Please login to continue.