RenderArray
extends AbstractHelper
in package
View helper to render a portion of an array.
Tags
Table of Contents
- __invoke() : string
- Render a portion of an array.
Methods
__invoke()
Render a portion of an array.
public
__invoke(string $tpl, array<string|int, mixed> $arr, array<string|int, mixed> $rows) : string
Parameters
- $tpl : string
-
A template for displaying each row. This should include %%LABEL%% and %%VALUE%% placeholders
- $arr : array<string|int, mixed>
-
An associative array of possible values to display
- $rows : array<string|int, mixed>
-
A label => profile key associative array specifying which rows of $arr to display