摘要: ecshop模板中smarty怎样判断用户等级、用户id、用户昵称用户名,请看以下方法,使用全局变量gt大于lt小于1:ecshop模板中调用session的值{$smarty.session.user_id}用户ID{$smarty.session.user_rank}用户等级2:ecshop模板中调用cookie的值{$smarty.cookie.user_id}3:ecshop模板中调用当前时间{$smarty.now}4:ecshop模板中调用调用$_GET里面的数据{$smarty.get}5:调用模板中调用调用$_POST里面的数据{$smarty.post}6:在ecshop模板 阅读全文
posted @ 2014-02-19 14:14 DaveZhou 阅读(1138) 评论(0) 推荐(0) 编辑