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}

相關文章
相關標籤/搜索