Home  >  Q&A  >  body text

There is an error in article_list. I don’t know why, but the banner can be displayed correctly.

QQ浏览器截屏未命名.png

<?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');


     }


宝肚宝肚2347 days ago1436

reply all(2)I'll reply

  • 无忌哥哥

    无忌哥哥2018-06-08 16:47:17

    Open APP_DEBUG to view specific error reports

    reply
    0
  • 亚连

    亚连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

    reply
    0
  • Cancelreply