Class 'Util\data\Sysdb' not found Something went wrong Something went wrong
布拉德皮特·老王
布拉德皮特·老王 2019-06-17 09:43:41
0
1
911

The code is correct. The capitalization is also correct, but there is an error when calling db. Is there something wrong with my configuration?

[1] ErrorException in Test.php line 12

Class 'Util\data\Sysdb' not found

use think\Controller;use Util\data\Sysdb;/***
*/class Test extends Controller{ public function index(){ $this->db = new Sysdb; $res = $this->db->table('admins')->where(array('id'=>1))->item(); dump($res); }}

Call Stack

in Test.php line 12at Error::appShutdown()


布拉德皮特·老王
布拉德皮特·老王

reply all(1)
王毛毛

I also have a problem here. Do you know what happened now?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!