Re: [SMARTY] Multidimensional array in columns and rows
| From: | Bertrand Zuchuat | Date: | Thu, 13 Oct 2005 07:35:32 +0000 |
| Subject: | Re: [SMARTY] Multidimensional array in columns and rows | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13080@lists.php.net to get a copy of this message | ||
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