creates a foreach loop, needs an {end:} tag. note that the engine will add the variable to the scope, so they will not be prefixed with $t-> when used inside the loop.
string variable - relates to $object->variable
string key - creates a variable 'key' in the current scope.
string value - optionally creates a variable 'value' in the current scope. (as in $key=>$value)
Пример 42-1. Setting variables for foreach
|
Пример 42-2. Foreach in template
|
Пример 42-3. Compiled template
|
Пример 42-4. example output
|
Пред. | Начало | След. |
{method(arguments,#quoted arguments#)} | Уровень выше | {if:variable} |
HIVE: All information for read only. Please respect copyright! |