Sv: [SMARTY] Assign a reference to a variable

From: Date: Fri, 02 Aug 2002 07:12:34 +0000
Subject: Sv: [SMARTY] Assign a reference to a variable
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5545@lists.php.net to get a copy of this message
I agree, references could often be quite useful. And wouldn't it be faster too? No need to copy large data structures to Smarty object instances... instead, just have references copied. /Anders > > Från: Hendy Irawan <ceefour@gauldong.net> > Datum: 2002/08/02 Fri AM 08:39:33 CEST > Till: smarty-general@lists.php.net > Ämne: [SMARTY] Assign a reference to a variable > > 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] > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ------------------------------------------------- WebMail från Tele2 http://www.tele2.se -------------------------------------------------

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