smarty 关于 if的问题
Cain 2004-09-15 11:42:19 Smarty 中的 if 语句和 php 中的 if 语句一样灵活易用,并增加了几个特性以适宜模板引擎. if 必须于 /if 成对出现. 可以使用 else 和 elseif 子句. 可以使用以下条件修饰词:eq、ne、neq、gt、lt、lte、le、gte、ge、is even、is odd、is not even、is not odd、not、mod、div by、even by、odd by、==、!=、>、<、<=、>=. 使用这些修饰词时必须和变量或常量用空格格开.
谁能为我解释一下eq, ne, neq... 的意思
另:
<capture name=qqq>
{include file='get_capture.tpl'}
</capture>
{if $smarty.capture.qqq != ""}
<tr>
<td>
{$smarty.capture.qqq}
</td>
</tr>
{/if}
为什么我无法捕获输出的内容?