what is the proper format in creating a 'basic' associative array within a user defined tag. for example, if i have this foreach in my content page...
Code: Select all
{foreach from=$nodelist item=node}
<a href="{$node->url}" {if $node->current}class="current"{/if}
>{$node->menutext}</a> |
{/foreach}
then what are the format requirements for building the associative array in the user define tag, and how does $nodelist and node relate to the user define tag if I have an associative array?
All I know is that I want this..
Code: Select all
Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
)
to connect to my foreach loop in my content section on page.
thanks for any advice!