Re: [SMARTY] "Smart" nesting of templates

From: Date: Mon, 10 Jun 2002 15:29:34 +0000
Subject: Re: [SMARTY] "Smart" nesting of templates
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4730@lists.php.net to get a copy of this message
At 15:59 10/06/02 +0200, Mirek Novak wrote:
I've chosen different way - I can have nested objects - each renders itself, remembers the result of rendering and passes it to his "parent". Of course ech object can have his own template and parent doesn't know what he contains, he is calling his childs' render method and gets the result of chosen type (XML, TXT, HTML ...), which can be passed to parents' template as a variable content. - This all means I have one instance of smarty runnig for every instance of object. It may sound like overhead danger, but I'm rendering only once, the whole result is stored in structure of static page fragments handled by SSI.
Have you got any sample code? I kind of follow you, but not totally :-) Thanks Peter --oOo-- Narrow Gauge on the web - photos, directory and forums! http://www.narrow-gauge.co.uk --oOo-- Glenbranter - Scottish narrow gauge in 009 http://glenbranter.narrow-gauge.co.uk --oOo--

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