Laravel Fatal error: Class 'C_DataGrid' not found in (PHP Namespace)

Question:
I unzipped the phpGrid update to start testing in Laravel. Getting this error on call to new grid:

Fatal error: Class 'C_DataGrid' not found in...

Solution:
phpGrid start supporting PHP namespace in version 6.7. Namespace is essential for forward compatibility that PHP introduced since version 5.3. 

In any new phpGrid code, start with the following:

use phpGrid\C_DataGrid;

Everything else stays the same. Read more: http://php.net/manual/en/language.namespaces.basics.php. It's required in PHP 7.


Feedback and Knowledge Base