Re: [SMARTY] Nested Includes not working

From: Date: Fri, 03 Jan 2003 21:54:57 +0000
Subject: Re: [SMARTY] Nested Includes not working
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7009@lists.php.net to get a copy of this message
On Thu, 2 Jan 2003 "Hoffman, Geoffrey" wrote: > Monte Ohrt wrote: > > "Hoffman, Geoffrey" wrote: > > > However, when I have $smarty->display('index.tpl') on index.php, > > > and index.tpl has {include 'news.tpl'} > > > I'm not getting the same result output to the browser. > > Your include statement syntax is wrong. Every parameter must have a > > name as well as a value. > > My include (in index.tpl) looks like this: {include file="news.tpl"} Your initial question shows you using {include 'news.tpl'} - this is invalid (no 'file' parameter name given; using single-quotes instead of double-quotes). Your response to Monte shows {include file="news.tpl"} - this is correct. Which is it? Templates can be nested arbitrarily deep, so long as you use the correct syntax. Apart from that, your description of the problem doesn't tell us what *does* happen. What is it that goes wrong? What do you get instead of the desired result? -- \ "If you ever catch on fire, try to avoid seeing yourself in the | `\ mirror, because I bet that's what REALLY throws you into a | _o__) panic." -- Jack Handey | bignose@zip.com.au F'print 9CFE12B0 791A4267 887F520C B7AC2E51 BD41714B

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