欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

smarty 标签注释

shiping1 的头像

模板中的注释是星号开头,然后外面包含着 定界符, 就像这样:

{* 这是一个注释 *}

 

{*
{if count($pager.pages) > 1}
<div class="pages">
{if $pager.from != 1}
    <a href="?c={$smarty.get.c}&pa={$pager.prev_page}&order={$order}">&lt;&lt;</a>
{/if}
{foreach from=$pager.pages item=paVal}
    <a href="?c={$smarty.get.c}&pa={$paVal}&order={$order}" class="{if $paVal == $smarty.get.pa || ($smarty.get.pa == '' && $paVal == 1)}active{/if}">{$paVal}</a>
{/foreach}
{if $pager.all != $pager.to}
    <a href="?c={$smarty.get.c}&pa={$pager.next_page}&order={$order}">&gt;&gt;</a>
{/if}
</div>
{else}
{/if}
*}

普通分类: