How can I print an $array[index] in a section?
| From: | Jones Down | Date: | Sun, 07 Apr 2002 16:41:30 +0000 |
| Subject: | How can I print an $array[index] in a section? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3533@lists.php.net to get a copy of this message | ||
Hi,
i have a menu-array like this:
$leftmenu = array ('entry1' => 1, 'entry2'=>5, 'entry3'=>12);
Now I want to loop the entries, I am trying like this:
{section name=menuleft loop=$leftmenu}
<tr><td>{$leftmenu[menuleft][0]}</td></tr>
{/section}
but nothiung happens- what am i doing wrong?
Thanks for your attention,
Jones