Section problem
| From: | Tom Sommer | Date: | Thu, 20 Feb 2003 13:52:35 +0000 |
| Subject: | Section problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7992@lists.php.net to get a copy of this message | ||
hey everyone,
I have this newbie problem with section
I've got this:
{section name=menu loop=$menu}
menu = {$menu[menu]}
{/section}
$menu looks like this:
array(
"News" => "index.php",
"About" => "about.php",
"Articles" => "articles.php",
"Desktops" => "desktop.php",
"Forums" => "forums.php",
"Links" => "links.php",
"Contact" => "contact.php"
);
How do I loop those with section?
In the documentation it does not state how the array should look for section
to work...
thanks
--
Tom Sommer
www.tsn.dk - www.dreamcoder.dk