section ./. array[0] ->foreach! -> But If it works with section also, please tell me how...
| From: | Jones Down | Date: | Sun, 07 Apr 2002 17:39:34 +0000 |
| Subject: | section ./. array[0] ->foreach! -> But If it works with section also, please tell me how... | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3537@lists.php.net to get a copy of this message | ||
Hi,
sorry for my strange mailings, I had some difficulties with qmail... he
didn´t like my subscribe-requests... anyhow, hope we will have lots of
fun with smarty! I am really very enthusiastic about it!
regarding the problem of accessing indizes of arrays in a section, I
did not find a solution within sections, but it is possible with
foreach:
{foreach name=lmenu key=key item=go from=$leftmenu}
<tr><td>{$key} - {$go}</td></tr>
{/foreach}
Hope that helps anyone...
Have a nice day and thanks for your attention!
Jones