Re: [SMARTY] Multidimensional array in columns and rows

Bertrand Zuchuat <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
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

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.