Re: [SMARTY] Clearing Smarty properties
| From: | Marcus Bointon | Date: | Thu, 05 Oct 2006 09:39:15 +0000 |
| Subject: | Re: [SMARTY] Clearing Smarty properties | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13490@lists.php.net to get a copy of this message | ||
On 5 Oct 2006, at 10:37, Marcus Bointon wrote:
I'm using Smarty for creating mailing list messages. In order to save instantiation overhead in the sending loop, I'd like to use a static Smarty instance and reset it each time around. Is there an easy way of clearing all smarty properties (like a $smarty->reset() function), for example removing all assigned vars? Or do I have to just clear them manually?Ahem, next time I'll read the manual more carefully... clear_assign() etc do what I need... Marcus -- Marcus Bointon Synchromedia Limited: Creators of http://www.smartmessages.net/ marcus@synchromedia.co.uk | http://www.synchromedia.co.uk/