Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I didn't find how to do a template : My array : $my_array=Array ( [dupont] => Array ( [id] => 38 [prenom] => titi [adresse] => DupontTown
Post Follow-up to this messagemessju 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.