{f:uri.resource(path: 'gfx/SomeImage.png', package: 'DifferentPackage')}
{f:uri.resource(path: 'resource://DifferentPackage/Public/gfx/SomeImage.png')}
Exibir arquivo
Open project: neos/flow-development-collection
Class Usage Examples
Property | Type | Description | |
---|---|---|---|
$i18nService | |||
$resourceManager |
Method | Description | |
---|---|---|
render ( string $path = null, string $package = null, |
Render the URI to the resource. The filename is used from child content. |
public render ( string $path = null, string $package = null, |
||
$path | string | The location of the resource, can be either a path relative to the Public resource directory of the package or a resource://... URI |
$package | string | Target package key. If not set, the current package key will be used |
$resource | If specified, this resource object is used instead of the path and package information | |
$localize | boolean | Whether resource localization should be attempted or not |
return | string | The absolute URI to the resource |
protected Service,Neos\Flow\I18n $i18nService | ||
return |