section loop / include bug
| From: | Monte Ohrt | Date: | Tue, 22 May 2001 14:21:52 +0000 |
| Subject: | section loop / include bug | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-785@lists.php.net to get a copy of this message | ||
FYI, a bug (introduced in 1.4.0) was found, and we're working on a fix.
This simple test shows the problem:
$smarty->assign("nums",array(1,2,3,4,5));
--- index.tpl ---
{section name=test loop=$nums}
{include file="header.tpl"}
{/section}
--- header.tpl ---
{$nums[test]}
you should see 1 2 3 4 5, but nothing prints.
Monte