#1 stalker
<{widget val=$smarty.cookies.id}>
function __template_widget($params){结果value什么都没有
return "";
}
而这样可以:
2012-06-02 18:47:15
<{widget val=$smarty.cookies.id}>
function __template_widget($params){结果value什么都没有
return "";
}
2012-06-02 18:47:15
2012-06-02 21:20:57
2012-06-02 22:42:06
class main extends spController模板
{
function index(){
spAddViewFunction('widget', '__template_widget');
$this->display('main_index.html');
}
function assignto() {
echo setcookie('idname', 'hello world', time()+3600);
}
}
function __template_widget($params){
return "";
}
{$smarty.cookies.idname}先访问
{widget valname=$smarty.cookies.idname}
2012-06-03 10:09:41
2012-06-05 02:19:05