Clearing Smarty properties
| From: | Marcus Bointon | Date: | Thu, 05 Oct 2006 09:37:38 +0000 |
| Subject: | Clearing Smarty properties | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-13489@lists.php.net to get a copy of this message | ||
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?
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
marcus@synchromedia.co.uk | http://www.synchromedia.co.uk/