globals

From: Date: Tue, 29 Jul 2003 21:50:56 +0000
Subject: globals
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9985@lists.php.net to get a copy of this message
Hi , I have some troubles with globals & smarty. Here is an example, it will be easier to understand : In php : [ smarty initialisation ] $myvar = "prenom"; $_POST['nv_'.$myvar] = 'myvalue'; [ smarty display] --------- in Tpl : --> {$smarty.post.nv_prenom} <--<br> -------- but it echoed nothing :((( I've done a var_dump directly in php, and my var IS in _POST : array(1) { ["nv_prenom"] => string("7") "myvalue" } Any idea ??? Olivier Doucet

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