标题: 以下几点Smarty功能那项是你不知道的?
蒲公英
新手上路
Rank: 1



UID 89
精华 1
积分 10
帖子 15
翻译 0
原创 0
阅读权限 10
注册 2007-6-21
状态 离线
发表于 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.

顶部
mayongzhan
PHPEye Developer
Rank: 8Rank: 8


UID 136
精华 2
积分 20
帖子 41
翻译 18
原创 1
阅读权限 1
注册 2007-6-30
状态 离线
发表于 2007-8-2 13:13  资料  短消息  加为好友 
目前用不到.

顶部
飯包
新手上路
Rank: 1



UID 583
精华 0
积分 0
帖子 1
翻译 0
原创 0
阅读权限 10
注册 2007-11-21
状态 离线
发表于 2007-11-21 01:17  资料  短消息  加为好友 
1.滿常用到的,不過是比較偷懶時 作法才這樣用,

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

3.這就沒用過了

顶部
 


PHPEye开源社区


当前时区 GMT+8, 现在时间是 2008-9-6 15:14

    Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.012693 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - PHPEye开源社区 - Archiver