Why can't the web page be displayed when a new base class is created before template separation?
致明
致明 2019-09-16 21:27:31
0
1
1140

index.php

<?php

namespace app\index\controller;

use  app\index\controller\Base;

class Index extends Base

{

    public function index()

    {

       return $this-> view ->fetch();   }

}

基类

<?php

namespace app\index\controller;

use  think\controller;

class Base extends controller

{


}


致明
致明

reply all(1)
    Longinquity。

Check if your view has index.html in the index folder

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template