Re: Help : section & loop
| From: | Toorop | Date: | Thu, 09 Sep 2004 12:30:02 +0000 |
| Subject: | Re: Help : section & loop | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11783@lists.php.net to get a copy of this message | ||
messju mohr,
[.....]
mm> {section} doesn't work with hash indizes, use {foreach}:
mm> {foreach from=$my_array item=element key=name}
mm> <tr class="{cycle values="TabLigne1,TabLigne2"}">
mm> <td height="21" >{$name}</td>
mm> <td >{$element.prenom}</td>
mm> <td >{$element.adresse}</td>
mm> </tr>
mm> {/foreach}
mm> greetings
mm> messju
Thanks ;-)
--
Toorop