<?php
use app\admin\common\Base;
use think\Request;
class Article extends Base
{
/**
* Display resource list
*
* @return \think\Response
*/
public function index()
{
//
return $this -> view -> fetch('article_list');
}
亚连2018-06-08 09:18:35
I don't remember that template rendering is written in this way. Looking at the TP5 manual, it is recommended to use the view() helper function. O(∩_∩)O