すべての Smarty タグは、
変数
を出力するか何らかの関数を呼び出す動作をします。
関数は、
{funcname attr1="val1" attr2="val2"}
のように関数名とその
属性
をデリミタで囲みます。
Example 3.3. 関数の構文
{config_load file="colors.conf"} {include file="header.tpl"} {insert file="banner_ads.tpl" title="イケてる Smarty"} {if $logged_in} ようこそ、<span style="color:{#fontColor#}">{$name}!</span> {else} やぁ、{$name} {/if} {include file="footer.tpl"}
registerPlugin()
も参照ください。
Comments