Re: WG: [SMARTY] Variable variables
| From: | messju mohr | Date: | Mon, 24 Mar 2003 14:43:47 +0000 |
| Subject: | Re: WG: [SMARTY] Variable variables | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8863@lists.php.net to get a copy of this message | ||
On Mon, Mar 24, 2003 at 03:06:53PM +0100, Thorsten Schmidt wrote:
> Sorry,
> I asked to quick, didn't see the mails before...
>
> It's working with the solution from philippe morange too.
>
> *shame*
no problem. maybe today is use-one-dimension-less-than-optimal-day :)
have fun
messju
> Thorsten
>
>
> -----Ursprüngliche Nachricht-----
> Von: Thorsten Schmidt
> Gesendet: Montag, 24. März 2003 14:57
> An: smarty-general@lists.php.net
> Betreff: [SMARTY] Variable variables
>
>
> 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