class AssetsHelper extends Helper
AssetsHelper helps manage asset URLs.
Methods
setCharset(string $charset) Sets the default charset. | from Helper | |
string | getCharset() Gets the default charset. | from Helper |
__construct(Packages $packages) | ||
string | getUrl(string $path, string $packageName = null) Returns the public url/path of an asset. | |
string | getVersion(string $path, string $packageName = null) Returns the version of an asset. | |
string | getName() Returns the canonical name of this helper. |
Details
setCharset(string $charset)
Sets the default charset.
string getCharset()
Gets the default charset.
__construct(Packages $packages)
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.
string getVersion(string $path, string $packageName = null)
Returns the version of an asset.
string getName()
Returns the canonical name of this helper.
Please login to continue.