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.
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.
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 |
string | A public path which takes into account the base path and URL path |
Designed by : w10schools
service@w10schools.com
Please login to continue.