includes in includes

From: Date: Wed, 28 Mar 2001 11:48:25 +0000
Subject: includes in includes
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-472@lists.php.net to get a copy of this message
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. -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

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