Package

ViewHelpers

ViewHelper Documentation

v:iterator.chunk

Creates chunks from an input Array/Traversable with option to allocate items to a fixed number of chunks

Arguments

subject anySimpleType

The subject Traversable/Array instance to shift

count integer

Number of items/chunk or if fixed then number of chunks

as string

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

fixed boolean

If true, creates $count chunks instead of $count values per chunk

preserveKeys boolean

If set to true, the original array keys will be preserved

ViewHelper Resources

Schema Resources