Feature #3592
Alias view helper for setting template variables
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
- [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