Reserverd words in Smarty 1.3.0??
| From: | Serge Sozonoff | Date: | Fri, 23 Feb 2001 12:57:43 +0000 |
| Subject: | Reserverd words in Smarty 1.3.0?? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-198@lists.php.net to get a copy of this message | ||
Hi Monte and Andrei,
Is "results" some sort of reserved word in a {section} section?
I tried doing this in the php file
while ($row_array = $db->FetchNext()) { // fetch rows
$smarty->append("results", $row_array);
}
and
{section name=firsttable loop=$results}
<TR>
<TD
WIDTH="150"ALIGN="CENTER">{#TableDetailsFont#}{$firsttable/results.FIL_FILENAME}</FONT>
</TD>
<TD
WIDTH="150"ALIGN="CENTER">{#TableDetailsFont#}{$firsttable/results.FIL_FILEMODIFIED}</FONT></TD>
<TD
WIDTH="150"ALIGN="CENTER">{#TableDetailsFont#}{$firsttable/results.FIL_FILEMODIFIED}</FONT></TD>
</TR>
{sectionelse}
in the template and it outputs fine, but amends the word "Array" at the end
of the page??
If I change it to "qresults" instead of "results" then the "Array"
word
dispears in the
output.
Are there any other "reserved" words like this?
Thanks, Serge