Feature #3791

View helper for resource URIs

Added by Christopher Hlubek almost 13 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
ViewHelpers
Target version:
Start date:
2009-06-28
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

The public resources in a project should be easier accessible with the help of a new view helper. The view helper should simply take a filename and an optional package key. The current package key should be taken as a default.

So including an image from the public resources could look like:

<img src="{f:uri.resource 'images/flow3-logo.gif'}" alt="FLOW3 logo" />

Also available in: Atom PDF