您的位置:首页技术文章
文章详情页

在模板分离前新建基类,为什么引用时网页无法显示

浏览:77日期: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