您现在的位置是:首页 > PHP技术PHP技术
Thinkphp模板中的赋值的两种方式
2018-04-26【PHP技术】1358 人已围观
简介class TestAction extends Action{public funct...
class TestAction extends Action{
public function index(){
/**
* 模板中的赋值的两种方式
*/
$this->assign('name','XXXX');
//$this->name='XXXX@';
$this->display();
}
}
是的, 就是使用assign或者this函数实现
关注宁波网站建设博客,更多精彩分享,敬请期待!
Tags:
很赞哦! ()
相关文章
随机图文
sql中查询同一列所有值出现的次数
需要查询country中各个国家出现的次数SQL语句:SELECT country as 国家,COUNT(*) as 次数 FROM ta...thinkphp imagettftext(): Could not find/open font验证码无法显示报错
thinkphp imagettftext(): Could not find/open font tp5.1验证码无法显示.打开debu...Thinkphp3.1.3中更新指定字段方法
Thinkphp3.1.3版本当中更新操作一般如下$dao = D("table");$dao->create...PHP优势可与Java应用程序集成
php发展势头迅猛,现在主流大网站都可以看到php的身影,php的另外一个优势是其调用已有java对象方法的能力。通过此项功能可将php集成...