Re: Template pool class

From: Date: Tue, 20 Nov 2001 09:27:27 +0000
Subject: Re: Template pool class
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1984@lists.php.net to get a copy of this message
Hello, Anders Janson wrote:
master layout template, and some more or less modular content. In my case, even the level of nesting is unknown. All modules use one or more templates. On top of that, every module may use submodules and so on....
Ah. Our system is similar. But I still use just one smarty object. When rendering a subtemplate, I save smarty's state, and when the subtemplate is finished, I reset it to it's original state. Currently, I only do this with the _tpl_vars members. I'm sure it's tricky and maybe there are other members that indicate a state, but for now it works, and quite fast :) Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

« previous php.smarty.general (#1984) next »