Re: [SMARTY] Clearing Smarty properties

[email protected] (Marcus Bointon) Thu, 5 Oct 2006 10:39:15 +0100
Newsgroups php.smarty.general
Message-ID <[email protected]>
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/
[email protected] | http://www.synchromedia.co.uk/