problem with dynamic "array key" in smarty
| From: | rs_satya | Date: | Mon, 23 Oct 2006 09:02:55 +0000 |
| Subject: | problem with dynamic "array key" in smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-13524@lists.php.net to get a copy of this message | ||
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.