Re: adding a number to a variable inside a loop
| From: | Wilhelm Kutting | Date: | Sat, 19 Apr 2003 20:24:29 +0000 |
| Subject: | Re: adding a number to a variable inside a loop | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9342@lists.php.net to get a copy of this message | ||
Sorry this is a oe-Problem occuring:
The output should be
1 --------- 7
2 --------- 14
3 ---------21
It should be the counter (1,2,3) and the step too?
"Wilhelm Kutting" <wkutting@gmx.de> schrieb im Newsbeitrag
news:20030419194904.85078.qmail@pb1.pair.com...
> The problem:
> {section name=rows loop=$data}
> <tr> <td>{$data[rows]}step:???????</td>
> </tr>
> {/section}the output should be 1 step 72 step 143 step 214 step 28I only
> know how to do this with mathfunction of smarty, but there surely is a
> easier solution
>
>