public
|
compile(array $args, object $compiler, array $parameter): string
Compiles code for the {for} tag
Smarty 3 does implement two different syntax's:
- {for $var in $array}
For looping over…
Compiles code for the {for} tag
Smarty 3 does implement two different syntax's:
- {for $var in $array}
For looping over arrays or iterators
- {for $x=0; $x<$y; $x++}
For general loops
The parser is generating different sets of attribute by which this compiler can
determine which syntax is used.
Parameters
$args |
array with attributes from parser
|
$compiler |
compiler object
|
$parameter |
array with compilation parameter
|
Returns
|
#
|