Re: [SMARTY] Syntax change in 3.4.2

From: Date: Fri, 14 Feb 2003 15:46:57 +0000
Subject: Re: [SMARTY] Syntax change in 3.4.2
References: 1 2 3 4 5 6  Groups: php.smarty.dev php.smarty.general 
Request: Send a blank email to php-smarty-dev+get-694@lists.php.net to get a copy of this message
That is because $newpg[newid] is the syntax for a section loop. You need to use $newpg.newid for associative arrays. Monte On Fri, 2003-02-14 at 09:40, Laurent Penou wrote: > Hello > > I could see the issue with > > {popup text="$hlpec[0]" caption="$hlpec[1]"} > > Is corrected in 342 > > But this syntax > > {shdtblstart title="You Are number : $newpg[newid] "} > > Displays > > "You Are number :" > > Te value $newpg[newid] is not displayed !! > > > Regards > Laurent > > > ----- Original Message ----- > From: "Monte Ohrt" <monte@ispi.net> > To: "Laurent Penou" <lpenou@free.fr> > Cc: "Smarty General" <smarty-general@lists.php.net>; "Smarty Dev" > <smarty-dev@lists.php.net> > Sent: Monday, February 10, 2003 6:53 PM > Subject: Re: [SMARTY] Syntax change in 3.4.1 > > > > A patch has been committed to CVS, give that a try. Actually any > > (reasonably) valid variable syntax should now be recognized in quotes. > > > > Monte > > > > > > On Sun, 2003-02-09 at 16:29, Laurent Penou wrote: > > > Hello > > > > > > Prior to 3.4.0 > > > > > > this was working > > > > > > php : > > > $smarty->assign("hlpphots",array("Bla...","Photos")); > > > tpl: {popup text="$hlpphots[0]" caption="$hlpphots[1]"} > > > > > > Now the tamplate must be > > > {popup text=$hlpphots[0] caption=$hlpphots[1]} > > > > > > Is that normal ? > > > Is there some other tricks like this one ? > > > > > > Laurent > > -- > > Monte Ohrt <monte@ispi.net> > > > > -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.dev (#694) next »