大多數(shù)函數(shù)都帶有自己的屬性以便于明確說明或者修改他們的行為. smarty函數(shù)的屬性很像HTML中的屬性. 靜態(tài)數(shù)值不需要加引號,但是字符串建議使用引號. 如果用變量作屬性,它們也不能加引號.
一些屬性用到了布爾值(真或假). 它們不需要加引號,可以是true,on,yes或者false,off,no.
例 3-3.函數(shù)屬性語法
{include file="header.tpl"} {include file=$includeFile} {include file=#includeFile#} {html_select_date display_days=yes} <SELECT name=company> {html_options values=$vals selected=$selected output=$output} </SELECT>
鍍金池立足為學(xué)員提供精品優(yōu)選課程及個性化定制服務(wù)。
掃碼關(guān)注鍍金池微信號手機訂課,優(yōu)惠多多