Re: [SMARTY] index associative array with another associative array

From: Date: Thu, 16 Jan 2003 00:49:28 +0000
Subject: Re: [SMARTY] index associative array with another associative array
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7216@lists.php.net to get a copy of this message
Thank's for the link. But I not very understand the relation. The recommandation is for variable between "" In my case $tmpIcone .= $tdTagBegin."<a href=/menu/".$smarty->_tpl_vars['MenuID']."/tpl/".$smarty['template']."/"; smarty get the ligne between "" ? Le jeu 16/01/2003 à 01:34, Jeff Eidsness a écrit : > > actually it looks like i made a mistake :( > > the syntax is {$smarty['template']} > > the url with more details is at > > http://www.php.net/manual/en/language.types.string.php#language.types. > string.parsing > > Do a search for 'Complex (curly) syntax' > > Sorry about being wrong and not sending the link the first time. > Hope this helps :) > -- > Jeff Eidsness - CIO / Site manager > JnJ International Data, LLC - http://www.jnjid.com/ > > > On 16 Jan 2003 00:42:11 +0100, Juzan Jean-Michel wrote: > >Hi, > > > >Thank's Jeff for your help. I always use $smarty['template'] syntax > >in > >my php code with no problem. Have you a link about this php > >recomandation ? > > > > > >There is a more simple way to index associative array with another > >associative array like the example beloy or do you know if smarty > >developpers has this in the pipe ? > > > >$OuiNon[$tmpSite['Site']['admin']] -> php syntax > > > >{section name=Site loop=$tmpSite} > ><tr class="listeadmin{$suffixTpl}"> > >{assign var="indexAdmin" > >value=$tmpSite[Site].admin}<td>{$OuiNon.$indexAdmin}</td> > >. > >. > > > >Regards. > > -- Jean-Michel Juzan - Co-Fondateur Direction Informations & Technologies eCreaSol - NetWork Creative Solutions Solutions personalisées pour PME & PMI Sécurité Systèmes et Réseaux LAN/WAN GNU/linux & Open Source jmjuzan@ecreasol.ch http://www.ecreasol.ch/ PGP public keys server : http://www.keyserver.net "Nous n'héritons pas la Terre de nos parents. Nous l'empruntons à nos enfants" Léopold Sédar Shangor

Attachment: [application/pgp-signature] signature.asc
« previous php.smarty.general (#7216) next »