Re: nested templates (sic)
| From: | Monte Ohrt | Date: | Thu, 20 Dec 2001 23:22:54 +0000 |
| Subject: | Re: nested templates (sic) | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2346@lists.php.net to get a copy of this message | ||
use include to recursively include templates within another.
{include file="foo.tpl"}
And obviously, you can get stuck in an infinite loop if a template
includes itself.
> Francois Dumais wrote:
>
> I am new to smarty. I would just like to know what is the basic
> technique or mechanism needed in smarty to have embedded (or nested)
> templates. Practically speaking I want to have html tables within
> html tables. I have tried to include templates that include templates
> that include templates, each template being basically built as an html
> wrapper around the include call. But it doesn't work. Any hints
> would be appreciated. Should we use "fetch", "capture", or
> "sections"?
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to
> $subst('Email.Unsub')
> Visit Smarty's homepage at `@Œš"OÃ
> VGÌ:ñÑ�http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/