文章詳情頁
在模板分離前新建基類,為什么引用時網頁無法顯示
瀏覽:78日期: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
上一條:這個請求頭是干嘛使的呀下一條:tp6 視頻要什么條件才能觀看
排行榜
