Re: [SMARTY] Nested Includes not working
| From: | Monte Ohrt | Date: | Thu, 02 Jan 2003 15:12:20 +0000 |
| Subject: | Re: [SMARTY] Nested Includes not working | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6988@lists.php.net to get a copy of this message | ||
Your include statement syntax is wrong. Every parameter must have a name
as well as a value.
On Tue, 2002-12-31 at 14:03, Hoffman, Geoffrey wrote:
> I have a problem that I can't figure out...
>
> I have a $news array ( $smary->assign('news', $newsArray) in index.php )
> containing 3 [story] objects, each object has properties headline, byline,
> story.
>
> If I do $smarty->display('news.tpl') on index.php, then news.tpl outputs 3
> tables as expected, based on a {foreach} in news.tpl.
>
> 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.
>
> Is there a limitation with nested includes? Or something I'm missing?
>
> Geoff
--
Monte Ohrt <monte@ispi.net>