Posted by Bertrand Zuchuat on 10/13/05 10:35
Le 12 oct. 05 à 23:57, Gary Smith a écrit :
> Aloha All,
>
> I'm trying to figure out how to put a multidimensional array into
> columns
> and rows like so. I looked at the tutorial at
> http://smarty.incutio.com/?page=SmartyColumnsTutorial but I
> couldn't figure
> out how to make it work with multidimensional arrays.
Hello,
You use this:
<table border="0" cellspacing="0" cellpadding="0">
{foreach from=$test item=item}
<tr align="left" valign="top">
{foreach from=$item item=litem}
<td>{$litem}</td>
{/foreach}
</tr>
{/foreach}
</table>
Bertrand
Navigation:
[Reply to this message]
|