
我不知道我在做什么,也許我不小心更改了CI4配置。
因此,我正在使用 Composer 安裝“hermawan/codeigniter4-datatables”,并且它已成功安裝。然后,當我在 Controller 中呼叫它時,似乎 ci4 找不到它。我正在使用 VS-Code,所以當我輸入時use Hermawan\DataTables\DataTable,我不能按 ctrl 左鍵單擊。
當我使用另一個專案(過去)時,這是正常的。但在這個專案中不是。
uj5u.com熱心網友回復:
檢查您是否已匯入庫或自動加載庫。
use \Hermawan\DataTables\DataTable;
還有這個需要 php-sql-parser
如果首先完成 n 仍然運行錯誤,請使用
composer dump-autoload
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/376590.html
