[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-general
Subject: [smarty] Re: includes in includes
From: Andrei Zmievski <andrei () ispi ! net>
Date: 2001-03-28 14:46:19
[Download RAW message or body]
On Wed, 28 Mar 2001, Ivo Jansch wrote:
> Hi,
>
> I can't include a template inside another included template..
>
> index.tpl:
>
> {include file=movie.tpl}
>
> movie.tpl:
>
> {include file=item.tpl}
>
> -> This doesn't work.. I get an endless loop.
>
> It's because of the extract($def_vars) thats in the include functions..
> In the second include, file_name from the first include gets extracted,
> overwriting the parameter file_name, caising movie.tpl to include itself
> instead of item.tpl.
That's already been fixed in the CVS version. We'll probably do a release soon.
-Andrei
* Non-volatile, random-access, analog memory store... a book. *
---
You are currently subscribed to smarty as: smarty@progressive-comp.com
To unsubscribe send a blank email to leave-smarty-700385W@lists.ispi.net
Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic