I want to integrate PhpGrid in my Cakephp Application.I am assuming that the integration will not have any problem.
Perhaps if someone has any experience please do share.
Integration should go smooth. It does not utilize cakephp data layer classes.
Just split the grid code in 2 parts. php in controller function and html in view. And pass $out to view.
Q) How can i integrate PHPGrid in MVC based frameworks like Yii, Codeignitor, Zend Framework, CakePHP and others.
To integrate in MVC, You can divide code in 2 sections. And put first in controller and pass the $out variable to view, where you can render it with rest of JS/CSS files.
$g = new jqgrid();
$out = $g->render("list1");
<link rel="stylesheet" type="text/css" media="screen" href="js/themes/redmond/jquery-ui.custom.css"></link>
<link rel="stylesheet" type="text/css" media="screen" href="js/jqgrid/css/ui.jqgrid.css"></link>
<?php echo $out?>
If it is working means anyone please share the controller and ctp(view) code. because when i integrate phpgrid and cakephp 3.7 it will generate the errors in jqgrid_dist.php (undefined variable and many things) please share full code here.
You can try after disabling notices in cakephp:
Unfortunately, the core lib of data grid is written on older version of php and may show notices, but hiding them won’t do anything harmful.
Abu Ghufran - Dev Team
Grid 4 PHP Framework
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?