Re: [SMARTY] Nested templated

From: Date: Mon, 15 Sep 2003 13:31:06 +0000
Subject: Re: [SMARTY] Nested templated
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10206@lists.php.net to get a copy of this message
On Mon, 2003-09-15 at 12:22, Alvaro Nunes Melo wrote: > Hi, > > I just can't calculate how many time I'd lost because I didn't knew > templates structure and, most specifically, smarty. But I don't know how > to solve a problem using it: nested templates. > > I have a tamplate for the main page, and inside of it I need to include > (dynamically), templates of other components of my pages. Is there any > way to do this? Do you mean like this? <?php $smarty->assign('subtemplate', 'sub-sports.html'); $smarty->display('main.html'); ?> smarty (main.html) {include file=$subtemplate} hth Robin

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