Feature #3592

Alias view helper for setting template variables

Added by Christopher Hlubek about 6 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2009-06-05
Priority:Should have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:ViewHelpers
Target version:1.0.0 alpha 2
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>

Associated revisions

Revision c2ce91e5
Added by Bastian Waidelich about 6 years ago

  • [FEAT] Fluid (ViewHelpers): Added AliasViewHelper, resolves #3592
  • [TASK] Fluid (Tests): Fixed and extended ForViewHelperTest
  • [TASK] Fluid (Tests): Tweaked ViewHelperBaseTestcase
  • [TASK] Fluid (Tests): Fixed some PHP Doc Comments

History

#1 Updated by Bastian Waidelich about 6 years ago

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

Applied in changeset r2614.

#2 Updated by Robert Lemke about 6 years ago

  • Target version set to 1.0.0 alpha 2

Also available in: Atom PDF