Variable variables
| From: | Thorsten Schmidt | Date: | Mon, 24 Mar 2003 13:56:49 +0000 |
| Subject: | Variable variables | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8860@lists.php.net to get a copy of this message | ||
Dear,
is there a way to realise this:
{section name=pages loop=10}
{assign var="row" value=$smarty.section.pages.rownum}
<TR>
<TD>{$array.value.param_$row_from}"></TD>
<TD>{$array.value.param_$row_to}"></TD>
</TR>
{/section}
The array is build up like this:
$array['value']['param_1_from']
$array['value']['param_1_to']
$array['value']['param_2_from']
$array['value']['param_2_to'] ...
I tried with {$array.value.param_$
row_from} but it also didn't work :
(
Smarty version is 2.5.0 RC 1.
Best regards
Thorsten