Re: [SMARTY] assign_by_ref better than assign?

From: Date: Sun, 10 Aug 2003 08:23:55 +0000
Subject: Re: [SMARTY] assign_by_ref better than assign?
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10029@lists.php.net to get a copy of this message
messju mohr wrote:
Are there any pitfalls I should be watching for by using assign_by_ref()?
as with references in php in genereal: yes, many. :) honestly: if you know what you do and you know what references are and if you can tell the difference between assign() and assign_by_ref() by heart and if you know on each line of your code which one you used before for the variable in question, there are no real pitfalls that are not publically known.
Got it, thanks. Like I told "atu", I don't modify the variables within Smarty at all, so I should be safe. I only use sections and placeholders, no modifiers. Thanks again. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com

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