accessing array from within section loop
| From: | Robert Mena | Date: | Mon, 05 May 2003 15:57:16 +0000 |
| Subject: | accessing array from within section loop | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9469@lists.php.net to get a copy of this message | ||
Hi,
I am beginning to use smarty and found one problem.
I need to access an array using a value obtained from
another array, which is looped in a section.
For ex.
{section name=count loop=$array1}
{assign var="status" value=$array1[cont].value1}
{$array2[$status]}
{/section}
Both array1 and 2 have been assigned.
Regards,
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com