Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$data['trafik'] = new stdClass;
这向我显示了错误:
找不到类“App\Controllers\stdClass”
您当前的代码位于命名空间内,您可以从根命名空间访问 stdClass,如下所示:
$data['trafik'] = new \stdClass;