class PathPackage extends Package
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)
Returns an absolute or root-relative public path. |
|
| string |
getBasePath()
Returns the base path. |
Details
at line 30
public
__construct(string $basePath = null, string $version = null, string $format = null)
Constructor.
in Package at line 36
public string
getVersion()
Returns the asset package version.
at line 45
public string
getUrl(string $path)
Returns an absolute or root-relative public path.
at line 66
public string
getBasePath()
Returns the base path.