TP框架中模板赋值
$this->assign(‘name‘,$value);
$this->name = $value;
// 两种写法是等效的
原文:http://www.cnblogs.com/lovebing/p/6723716.html