Feature #3592

Alias view helper for setting template variables

Added by Christopher Hlubek over 11 years ago. Updated over 10 years ago.

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

100%

Estimated time:
Has patch:

Description

There should be an alias view helper that can set variables in the template.

The following use cases should be supported:

<f:alias value="{foo.bar.baz}" as="x">
{x.name}
</f:alias>
<f:alias map="{x: foo.bar.baz, y: foo.bar.baz.name}">
{x.name} or {y}
</f:alias>
#1

Updated by Bastian Waidelich over 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2614.

#2

Updated by Robert Lemke over 11 years ago

  • Target version set to 1.0.0 alpha 2

Also available in: Atom PDF