搜尋

首頁  >  問答  >  主體

在模板分離前新建基類,為什麼引用時網頁無法顯示

index.php

命名空間 app\index\controller;

use app\index\controller\Base;

# class Index extends Base

{

    public function index()

    {

##       return $this->視圖 -> fetch(); }

}

基底類別

namespace app\index\controller;

use  think\controller;

基底類別擴充控制器

{


##}

致明致明2019 天前1185

全部回覆(1)我來回復

  •     Longinquity。

        Longinquity。2019-09-17 09:05:58

    看你的視圖有沒有 index資料夾下index.html

    回覆
    0
  • 取消回覆