class PathPackage extends Package
deprecated
since 2.7, will be removed in 3.0. Use the Asset component instead.
The path packages adds a version and a base path to asset URLs.
Methods
__construct(string $basePath = null, string $version = null, string $format = null) Constructor. | ||
string | getVersion() Returns the asset package version. | from Package |
string | getUrl(string $path, string|bool|null $version = null) Returns an absolute or root-relative public path. | |
string | getBasePath() Returns the base path. |
Details
__construct(string $basePath = null, string $version = null, string $format = null)
Constructor.
string getVersion()
Returns the asset package version.
string getUrl(string $path, string|bool|null $version = null)
Returns an absolute or root-relative public path.
string getBasePath()
Returns the base path.
Please login to continue.