[SMARTY] problem with dynamic "array key" in smarty

rs_satya <[email protected]> Mon, 23 Oct 2006 02:02:55 -0700 (PDT)
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
I need to send an array value as a key to another array dynamically in a
template.
pls . Help me.

the sample code is as follows:

{foreach name=outer item=hno key=key from=$hoas}
<tr>
<td>
{$hno.sno} //OK

{$be[{$hno.sno}]} //I tried like this -- Wrong

// Here I need to send this {$hno.sno} value as a key to {$be[]} associative
array.

</td>
</tr>
{/foreach}
-- 
View this message in context: http://www.nabble.com/problem-with-dynamic-%22array-key%22-in-smarty-tf2493089.html#a6950437
Sent from the Smarty - General mailing list archive at Nabble.com.

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php