Package

ViewHelpers

ViewHelper Documentation

v:iterator.range

Iterator Range ViewHelper

Implementation of range for Fluid

Creates a new array of numbers from the low to the high given value, incremented by the step value.

Usage examples

Numbers 1-10: {v:iterator.implode(glue: ',') -> v:iterator.range(low: 1, high: 10)}
Even numbers 0-10: {v:iterator.implode(glue: ',') -> v:iterator.range(low: 0, high: 10, step: 2)}

Arguments

low integer

The low number of the range to be generated

high integer

The high number of the range to be generated

step integer

The step (increment amount) between each number

as string

Template variable name to assign; if not specified the ViewHelper returns the variable instead.

ViewHelper Resources

Schema Resources