您的位置:首頁技術文章
文章詳情頁

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

瀏覽:99日期:2022-06-08 17:35:52

問題描述

index.php

<?php

namespace appindexcontroller;

use appindexcontrollerBase;

class Index extends Base

{

public function index()

{

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

}

基類

<?php

namespace appindexcontroller;

use thinkcontroller;

class Base extends controller

{

}

問題解答

回答1:

看你的視圖是否有 index文件夾下index.html

国产综合久久一区二区三区