Re: [SMARTY] Question about smarty, and if it can replace PHPLIB

From: Date: Wed, 19 Feb 2003 14:31:57 +0000
Subject: Re: [SMARTY] Question about smarty, and if it can replace PHPLIB
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7877@lists.php.net to get a copy of this message
"Renaud Binse" <rbinse@profileup.com> write in news:HDEKJFAJBPBFMGLFHILOAEKLCEAA.rbinse@profileup.com... > $smarty->assign('var1', 'xxx'); > $smarty->assign('var2', 'yyy'); > $smarty->assign('tpl', 'content.tpl'); > $smarty->display('index.tpl'); > > In the template file (index.tpl): > > <HTML CODE> > ... > {include file=$tpl} > ... > <HTML CODE> > > var1 and var2 will be accessible in both templates, content.tpl and > index.tpl, with the tags {$var1} and {$var2} Awesome, thank you so much , also Thank you André and Messju :) Will have a test of it soon Bye bye PHPLIB -- Tom Sommer www.tsn.dk - www.dreamcoder.dk

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