I downloaded PHP grid lite. using xampp server on my local machine. It keeps giving me the error Fatal error:
Uncaught Error: Class 'phpGrid_Lite\\C_DataGrid' not found
require_once("../conf.php");;
use phpGrid_Lite\C_DataGrid;
$dg = new C_DataGrid("SELECT * FROM Orders", "orderNumber", "Orders");
This is easy to fix.
Your code:
$dg = new C_DataGrid("SELECT * FROM Orders", "orderNumber", "Orders");
Fix:
$dg = new \C_DataGrid("SELECT * FROM Orders", "orderNumber", "Orders");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.