0
我目前首次使用Smarty-php,但我正在努力將if語句放在{include}下方。Smarty PHP添加了一個{if}語句幷包含一個tpl
{include './header.tpl'}
每當我做下面的事情時,我得到一個500錯誤。
{if $smarty.get.special is not "ajax"}
{include './header.tpl'}
{/if}
我目前首次使用Smarty-php,但我正在努力將if語句放在{include}下方。Smarty PHP添加了一個{if}語句幷包含一個tpl
{include './header.tpl'}
每當我做下面的事情時,我得到一個500錯誤。
{if $smarty.get.special is not "ajax"}
{include './header.tpl'}
{/if}
它應該是:
{if $smarty.get.special != "ajax"}
{include file='./header.tpl'}
{/if}
的is [not]
語法可以偶數或奇數用於檢查的值是(或不是)。
你能發佈錯誤日誌嗎? –
爲什麼這個問題關於smarty和PHP,但它被標記爲任務並行庫? –