trait AssetMaker

Properties

array $assetPath

Methods

flushAssets()

No description

string
getAssetPath(string $fileName, string $assetPath = null)

Locates a file based on it's definition. If the file starts with a forward slash, it will be returned in context of the application public path, otherwise it will be returned in context of the asset path.

addMeta($meta)

No description

addJs($href, $attributes = null)

No description

addCss($href, $attributes = null)

No description

Details

at line 15
flushAssets()

No description

at line 30
string getAssetPath(string $fileName, string $assetPath = null)

Locates a file based on it's definition. If the file starts with a forward slash, it will be returned in context of the application public path, otherwise it will be returned in context of the asset path.

Parameters

string $fileName

File to load.

string $assetPath

Explicitly define an asset path.

Return Value

string

Relative path to the asset file.

at line 55
addMeta($meta)

No description

Parameters

$meta

at line 60
addJs($href, $attributes = null)

No description

Parameters

$href
$attributes

at line 65
addCss($href, $attributes = null)

No description

Parameters

$href
$attributes