parser bug?
| From: | Travis Low | Date: | Tue, 09 Sep 2003 07:01:17 +0000 |
| Subject: | parser bug? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10179@lists.php.net to get a copy of this message | ||
Due to a cut-and-paste error, I had the following template code (I use
double braces). I have emphasized the error with "^^", below.
<td class="{{$rowstyle}}" align="center">
{{if "Y" == {{$kids[kid].publish}}
------------^^
Y
{{/if}}
</td>
which I later corrected to:
<td class="{{$rowstyle}}" align="center">
{{if "Y" == $kids[kid].publish}}
Y
{{/if}}
</td>
Shouldn't the first one generate an error of some kind? It didn't.
cheers,
Travis
--
Travis Low
<mailto:travis@dawnstar.com>
<http://www.dawnstar.com>