哈哈哈,tp6什么玩意啊 官方的代码都报错哈哈哈哈

浏览:4728 发布日期:2019/11/01 分类:ThinkPHP6专区
namespace app\controller;

use think\facade\View;

class Index
{
    public function index()
    {
        // 模板输出并变量赋值
        return View::fetch('index', [
            'name'  => 'ThinkPHP',
            'email' => 'thinkphp@qq.com'
        ]);
    }
}
出自:https://www.kancloud.cn/manual/thinkphp6_0/1037609

报错:Argument 2 passed to think\View::fetch() must be of the type bool, array given
最佳答案
评论( 相关
后面还有条评论,点击查看>>