PHPEye开源社区 » PHP技术讨论区 » 以下几点Smarty功能那项是你不知道的?
《Programming PHP》第二版上市
2007-7-2 10:58 蒲公英
以下几点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.

2007-8-2 13:13 mayongzhan
目前用不到.

2007-11-21 01:17 飯包
1.滿常用到的,不過是比較偷懶時 作法才這樣用,

2.就不常用到,因為如果太多判斷還在樣版執行,那幹嘛用樣板?

3.這就沒用過了

页: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.