Closed s2b closed 4 months ago
The FirstViewHelper and LastViewHelper return the first or last item of a specified array, respectively.
<f:first value="{0: 'first', 1: 'second', 2: 'third'}" /> <!-- Outputs "first" --> <f:last value="{0: 'first', 1: 'second', 2: 'third'}" /> <!-- Outputs "third" -->
The FirstViewHelper and LastViewHelper return the first or last item of a specified array, respectively.
Examples