uri.resource

A view helper for creating URIs to resources.

Examples

Defaults:

<link href="{f:uri.resource(path:'css/stylesheet.css')}" rel="stylesheet" />

Output:

<link href="Resources/Packages/MyPackage/stylesheet.css" rel="stylesheet" />

(depending on current package)

Arguments

path

DataType
string
Required
true
Description
The path and filename of the resource (relative to Public resource directory of the extension).

extensionName

DataType
string
Required
true
Description
Target extension name. If not set, the current extension name will be used

absolute

DataType
mixed
Required
true
Description
If set, an absolute URI is rendered