After installing Grocery CRUD Enterprise at my Codeigniter 4 project, I am getting the following error:
Class 'GroceryCrud\Core\GroceryCrud' not found
Am I missing something? I've followed the instructions of the Installation guide but there is nowhere showing how to resolve this.
This is a very common mistake when you install Grocery CRUD Enterprise without composer. Since the library is not loaded through PSR-4 that is used from composer, the library needs to be explicitly called through the function include.
More specifically if your Controller starts with those lines:
You should add the below include right after the line
namespace App\Controllers;So your new Controller will look like this: