How to fix PHP Fatal error: Class 'C_DataGrid' not found

You can either comment out the first line

// use phpGrid\C_DataGrid;

— OR —

Add a global namespace symbol — single backslash — BEFORE the constructor

$dg = new \C_DataGrid(“SELECT * FROM orders”, “orderNumber”, “orders”);

Feedback and Knowledge Base