GroupedFor ViewHelper <f:groupedFor> 

Grouped loop ViewHelper. Loops through the specified values.

The groupBy argument also supports property paths.

Using this ViewHelper can be a sign of weak architecture. If you end up using it extensively you might want to fine-tune your "view model" (the data you assign to the view).

Go to the source code of this ViewHelper: GroupedForViewHelper.php (GitHub).

Arguments of the <f:groupedFor> ViewHelper 

as

as
Type
string
Required
1
The name of the iteration variable

each

each
Type
array
Required
1
The array or \SplObjectStorage to iterated over

groupBy

groupBy
Type
string
Required
1
Group by this property

groupKey

groupKey
Type
string
Default
'groupKey'
The name of the variable to store the current group