urgent: Passing PHP variables in SMARTY

From: Date: Wed, 11 Feb 2004 15:54:50 +0000
Subject: urgent: Passing PHP variables in SMARTY
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2099@lists.php.net to get a copy of this message
Hi everybody! I have a big problem here... I have a web site in PHP and want to convert it into SMARTY style. I have calls like this in my main file (old one, with no SMARTY): main.php?lang=en&cn=1 How can I catch this variables in my template? I tried this and it didn't work: index.php (SMARTY based) $smarty->assign("portal",$lang); index.tpl {php} if(isset($lang)) { {/php} <h1>set lang!</h1> {php} } {/php} Any help appreciated!. Thanks from now! Regards, M.Mamedov

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