在模板分離前新建基類,為什麼引用時網頁無法顯示
致明
致明 2019-09-16 21:27:31
0
1
1164

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;

基底類別擴充控制器

{


##}

致明
致明

全部回覆(1)
    Longinquity。

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

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板