Re: nested template question

From: Date: Mon, 26 Mar 2001 12:44:33 +0000
Subject: Re: nested template question
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-435@lists.php.net to get a copy of this message
Jonas Bengtsson wrote: > have you tried to pass vaiables with your include? > Example (from manual): > {include file=footer.tpl title="Main Menu table_bgcolor="#c0c0c0"} Yes, quote from my previous mail: > > {section name=outer loop=$mybookmarks} > > {include file="item.tpl" name=$mybookmarks/name url=$mybookmarks/url} > > {/section} > > > > But I'm not happy with this approach for two reasons: > > - The {include } line gets big for large templates > > - index.tpl is dependent on item.tpl. I can't add a field to item.tpl > > without adding it to the > > include line. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

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