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
最佳答案