Accessing variables inside {php} sections

From: Date: Mon, 12 Jan 2004 22:06:58 +0000
Subject: Accessing variables inside {php} sections
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10814@lists.php.net to get a copy of this message
Hi all, in my php code, I do an assignement like $tpl->assign('program', $myprogram); Now, I want to access $program from a smarty template, and it's easy if I use smarty tags like {$program}, but I want to access it from a {php} template section too. Smarty, or, better, php, complains that $program is not defined .. so what is the solution? How can I access assigned variables from php sections in smarty's templates? Bye. -- Francesco

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