Re: [SMARTY] Access associative array with associative array value

From: Date: Fri, 11 Jul 2003 09:31:29 +0000
Subject: Re: [SMARTY] Access associative array with associative array value
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9869@lists.php.net to get a copy of this message
On Fri, Jul 11, 2003 at 10:49:41AM +0200, Olivier Doucet [reagi.com] wrote: > This doesn't work : > > --TEMPLATE-- > {assign var="mod_selection" value=$smarty.post.mod} > You choose : {$mod_server.mod_selection} this should read {$mod_server.$mod_selection} . otherwise the template wants to print the value of $mod_server['mod_selection'] (in php-notation). HTH messju > (and in previous page :) > <select name="mod" class="reagi_formulaire"> > {html_options options=$mod_server} > </select> > > --PHP-- > $mod_server = array("cstrike" => "Counter-Strike", > "dod" => "Day Of Defeat" > ); > $smarty->assign("mod_server",$mod_server); > > > Do u understand what i'm trying to do ??? Plz help me understand WHY it > doesn't work :) > > Cordialement, > Olivier Doucet > Webmaster de www.ajeux.com > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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