Has any one used Codeignigter 4 with DHTMLX 5
I haveing trouble getting Codeignigter 4.2 and DHTMLX 5.2 to fill the dhtlmx5.2 grid with data
the header show on the page but no data
I get an error
myGrid.load( "grid/data" ); cause the error
dhtmlx.js:9 Uncaught 
- XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ, …}
 
function callCodeIgniterController() {
        
    myGrid = new dhtmlXGridObject("winVP");
    myGrid.setHeader("Part Id, Part Number");
    myGrid.init();
    
    myGrid.load( "grid/data" );
    
    console.log('here')
    return;
}
routes
<?php
use CodeIgniterRouterRouteCollection;
/**
 * @var RouteCollection $routes
 */
$routes->get('/', 'Erp::index');
$routes->get("grid/curinv", "Grids::index");
$routes->get('grid/data/(:any)', 'Grids::data/$1'); 
$routes->get('grid/data', 'Grids::data'); 
?>
controller
<?php             
namespace AppControllers;
require_once("dhtmlx5.2/Connector/grid_connector.php");
require_once("dhtmlx5.2/Connector/db_phpci.php");
class Grids extends BaseController 
{                  
    public function index(){       
        $this->load->view('curinv');  
    }
    public function data(){                       
        console.log(1111);          
        $this->load->database();//data feed   
        console.log(2222);                     
        $connector = new GridConnector($this->db, "phpCI");    
        console.log(3333);   
        $connector->configure(                                 
            "parts",                                           
            "part_id",                                         
            "part_id,part_number"                    
        );                                                     
        $connector->render();                                  
    }                                                          
};
?>