|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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/ |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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/ |
|
![]() |
| Outils de la discussion | |
|
|