ecshop经常使用的一些变量

<!-- {if $smarty.session.user_rank gt 1}-->gt大于 lt小于
1:ecshop模板中调用session的值cookie

 {$smarty.session.user_id} 用户IDsession

 {$smarty.session.user_rank} 用户等级post

2:ecshop模板中调用cookie的值server

 {$smarty.cookie.user_id}get

3:ecshop模板中调用当前时间it

 {$smarty.now}io

4:ecshop模板中调用调用$_GET里面的数据ast

 {$smarty.get}模板

5:调用模板中调用调用$_POST里面的数据foreach

 {$smarty.post}

6:在ecshop模板中调用cookie

 {$smarty.cookie.name}

7:在ecshop的smarty中调用$_SERVER的值

 {$smarty.server}

8:在ecshop中进行一些foreach的取值和判断

 {$smarty.foreach.iteration.first}判断是否第一条数据

 {$smarty.foreach.iteration.last} 最后一条数据

9:在ecshop模板中取得$_REQUEST的值

 {$smarty.request.name}

相关文章
相关标签/搜索