搜尋

首頁  >  問答  >  主體

Class 'Util\data\Sysdb' not found出錯了出錯了

程式碼對的。大小寫也是對的,但是呼叫db出錯了,是我配置出現了問題嗎

[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 12a

布拉德皮特·老王布拉德皮特·老王2068 天前1032

全部回覆(1)我來回復

  • 王毛毛

    王毛毛2020-12-02 16:07:37

    我也是這裡出了問題,請問你現在知道咋回事了嗎?

    回覆
    0
  • 取消回覆