Fluid icon indicating copy to clipboard operation
Fluid copied to clipboard

f:range ViewHelper

Open s2b opened this issue 6 months ago • 0 comments

A new <f:range> ViewHelper should be added to Fluid, which returns an array that contains the specified range of integers. We currently limit this to integers because floats would require support for proper mixed types in Fluid.

Arguments:

  • int $start
  • int $end
  • int $step

See also the php range() function.

Example:

<f:for each="{f:range(start: 1, end: 5)}" as="i">
    {i}
</f:for>

s2b avatar Jun 26 '25 08:06 s2b