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

From: Date: Wed, 25 Oct 2006 16:46:22 +0000
Subject: Re: [SMARTY] problem with dynamic "array key" in smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13530@lists.php.net to get a copy of this message
Are you looking for {$be[$hno.sno]} ? rs_satya wrote:
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}


« previous php.smarty.general (#13530) next »