Re: [SMARTY] References
| From: | Hinrich Donner | Date: | Mon, 16 Dec 2002 21:47:03 +0000 |
| Subject: | Re: [SMARTY] References | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6845@lists.php.net to get a copy of this message | ||
> On Mon, 2002-12-16 at 15:16, Hinrich Donner wrote:
> It should be. Smarty will do an unset() on the assigned template
> variable. I think if you do an unset() on a reference it doesn't harm
> the actual contents.
Hm, but you do an unset on normal "assign" vars? Or they remain in memory?
I'm asking because I'm devolping a system using Smarty. In this I call a
template from the main PHP file. the template call again plugins. the
plugins uses parts of the core and other modules again and displaying the
results. Thie can be move deeper and deeper. Each plugin uses assign and
clear_assign on the referenced object "$smarty". So if you do not clear up
the memory on "clear_assign" it might be a problem?
Hinrich