Foreach into Section - problem
| From: | Peter Billen | Date: | Sun, 11 Aug 2002 13:46:52 +0000 |
| Subject: | Foreach into Section - problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5649@lists.php.net to get a copy of this message | ||
Hello,
I was learning how to handle with foreach's and sections. As a test, I
was tryin to convert a foreach into a section, but it doesn't work, and
I don't see why not.
My foreach: works
{foreach from=$memberListData item=user_id}
<tr bgcolor=#2D3741 class=wit><td> .
{#clantag_prefix#}{$user_id.user_nickname}{#clantag_postfix#}<br></td></
tr>
{/foreach}
My section: it show's the correct number of members (so the loop is
correct), but it doesn't display the user_nickname
{section name=memberList loop=$memberListData}
<tr bgcolor=#2D3741 class=wit><td> .
{#clantag_prefix#}{$memberListData.user_nickname[memberList]}{#clantag_p
ostfix#}<br></td></tr>
{/section}
What's wrong with this?
Thanks,
Peter