Re: includes in includes
| From: | Andrei Zmievski | Date: | Wed, 28 Mar 2001 14:46:19 +0000 |
| Subject: | Re: includes in includes | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-478@lists.php.net to get a copy of this message | ||
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. *