Nested Includes not working
| From: | Hoffman, Geoffrey | Date: | Tue, 31 Dec 2002 20:03:09 +0000 |
| Subject: | Nested Includes not working | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6973@lists.php.net to get a copy of this message | ||
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