Tengo un proyecto MVC y requiro integrar grid, para integrarlo tambien se debe realizar tal y como se muestra en la documentacion:
include_once(“../../config.php”);
// include and create object
include(PHPGRID_LIBPATH.”inc/jqgrid_dist.php”);
$db_conf = array(
“type” => PHPGRID_DBTYPE,
“server” => PHPGRID_DBHOST,
“user” => PHPGRID_DBUSER,
“password” => PHPGRID_DBPASS,
“database” => PHPGRID_DBNAME
);
$g = new jqgrid($db_conf);
o se integra de otra forma porque al realizarlo de esta manera en un controlador me marca el error que no encuentra la clase jqgrid
Uncaught Error: Class “Controllers\Comercial\jqgrid” not found
If the path of the jqgrid_dist.php is corrrect, you can try appending root namespace \ before jqgrid():
$g = new \jqgrid($db_conf);
I don’t know which MVC you are using, however you can also check this laravel guide and take help: