Assign a reference to a variable

From: Date: Fri, 02 Aug 2002 06:39:33 +0000
Subject: Assign a reference to a variable
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5544@lists.php.net to get a copy of this message
smarty-general, I want to do something like: $smarty->assign('myobj', $myobj); Where $myobj is an object. However, later I want to change $myobj (before displaying the template) but the changes are not visible. Doing: $smarty->assign('myobj', &$myobj); seems to have no effect. Is there a way to solve this problem? Assigning these variables exactly before it's displayed is not a solution. Salam hangat, Hendy Irawan - www.GaulDong.NET Kantor: (021) 5260467 [SoftVation] Kos: (021) 5261839 [kamar 3]

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