Re: [SMARTY] {php} and template: variables back and forth

From: Date: Fri, 17 Jan 2003 20:25:29 +0000
Subject: Re: [SMARTY] {php} and template: variables back and forth
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7258@lists.php.net to get a copy of this message
Le ven 17/01/2003 à 18:41, Desiree Rivera a écrit : > Hi, > > I found something in the documentation and it works for me. :) > > Try: > > - - - - - - - toto.tpl - - - - - - - > {php} > $this->assign("toto","I'm a cute little doggie"); > {/php} > > The var is {$toto} Hi, I made the same report. If you want to assign variable only in the current applet you must use append but seems not work {* 1.tpl *} {php} $this->append("toto","I'm a cute little doggie"); {/php} The var is {$toto} Output: The var is array // waited: The var is 1 {* 2.tpl *} The var is {$toto} Output: The var is array // waited: The var is

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