Re: SV: [SMARTY] Using PHP variables in smarty control structures

From: Date: Wed, 02 Oct 2002 09:56:39 +0000
Subject: Re: SV: [SMARTY] Using PHP variables in smarty control structures
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6076@lists.php.net to get a copy of this message
Paolo Nesti Poggi wrote:
Try something like: In the php file : <?php if ($lang="en"){ $smarty->assign("lang","en"); } ?> then in the template write {config_load file="index.cfg" section=$lang}
Thanks Paolo, I had tried this, but I must have done something wrong in my setup. I tried it again and this time it worked fine. Thanks to all with answers and suggestions for me. Brodie.

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