前台模板页面有不是smart的大括号加标签
{literal}
内容
{/literal}
不加会使页面报错或使页面无法访问。
循环:一维直接取值 【{$gsxx.content}】
二维 :section
{section name=loop loop=$jqnews start=0 max=9}
<li><a href="/{$entitle}/{$jqnews[loop].id}.html">{$jqnews[loop].title}</a></li>
{/section}
二维 : foreach
{foreach from=$newList item=item name=foo key=key}
循环中if 判断key的值走不同的场景
{if ($key+1)%6==0}
<li class="Forcing_a_line fl"><a href="/news/{$item.id}/{$jjcanshu}">{$item.title}</a></li>
{else}
1111
{/if}
{/foreach}
//加载文件
{include file="chanal_head2.html"}
//if判断
{if $newurl }
news.png
{else}
{$gsxx.url}.png
{/if}