以下几点Smarty功能那项是你不知道的?
1. The PHP reserved {$smarty} variable can be used to access several enviroment and request variables.
也就是说Smarty能直接访问get,post,cookies,server,env,session,request中设置的变量
2. 默认情况下php内置函数能在{if}{/if}中应用,或者作为Modifier
3. If you apply a modifier to an array variable instead of a single value variable, the modifier will be applied to every value
in that array. If you really want the modifier to work on an entire array as a value, you must prepend the modifier name with a @ symbol.
|