2020
09-29
09-29
thinkphp5.1框架模板赋值与变量输出示例
本文实例讲述了thinkphp5.1框架模板赋值与变量输出。分享给大家供大家参考,具体如下:Demo.phpnamespaceapp\index\controller;usethink\Controller;usethink\facade\View;classDemoextendsController{publicfunctiontest1(){//直接将内容输出到页面,不通过模板$con='<h3style="color:red">PHP</h3>';return$this->dieplay($con);return$this->view->display($con);returnView::display($c...
继续阅读 >