![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ThinkPHP5
cxf920529
这个作者很懒,什么都没留下…
展开
-
thinkphp5 $this->view->fech();解析
1.控制器直接调用$this->view->fetch();2.调用~\thinkphp\library\think\View.php的fetch()方法;$this->engine->$method($template, $vars, $config);$this->engine 调用模板引擎默认 ~\thinkphp\library\think\v...原创 2018-07-21 17:21:42 · 4498 阅读 · 0 评论 -
ThinkPHP--collecttion--toArray()
1. // 必须将结果集转换为数组 $ruleList = collection(\app\admin\model\AuthRule::where('status', 'normal')->where('ismenu', 1)->order('weigh', 'desc')->cache("__menu__")->select())->toArr...原创 2018-07-26 20:00:27 · 1211 阅读 · 0 评论 -
thinkphp5 App::run()
App::run() initCommon()init() App::run()->send(); App::run()--->返回 $response 对象 $response->send();原创 2018-07-21 19:12:48 · 4880 阅读 · 0 评论