在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/PHP  數(shù)據(jù)庫(kù)/ 在smarty的模板中怎么取cookie呢?

在smarty的模板中怎么取cookie呢?

我在php代碼中可以通過(guò)下面的方式取cookie:

$_COOKIE['qicloud_access_token']

但是在smarty的模板中怎么取cookie呢?

回答
編輯回答
枕頭人
{* display the value of the cookie "username" ($_COOKIE['username']) *}
{$smarty.cookies.username}

https://www.smarty.net/docs/z...

2018年5月22日 22:49