ResourceViewHelper extends AbstractViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:uri.resource>
A ViewHelper for creating URIs to resources.
This ViewHelper should be used for extension resource files.
For images within FAL storages, or where graphical operations are
performed, use :ref:<f:uri.image> <typo3-fluid-uri-image>
instead.
Examples
Best practice with EXT: syntax
::
Output::
Preferred syntax that works in both extbase and non-extbase context.
Defaults
::
Output::
Works only in extbase context since it uses the extbase request to find current extension, magically adds 'Resources/Public' to path.
With extension name
::
Output::
Magically adds 'Resources/Public' to path.
Table of Contents
Methods
- initializeArguments() : void
- render() : string
- Render the URI to the resource. The filename is used from child content.
Methods
initializeArguments()
public
initializeArguments() : void
render()
Render the URI to the resource. The filename is used from child content.
public
render() : string
Tags
Return values
string —The URI to the resource