We’ve published a new tutorial on how to integrate PHP Grid Framework with Joomla 3.9.8. It allows using all features of our Data Grid inside Joomla and with much simpler implementations. Steps required to integrate are following:

Step1: Download Free version or Buy package from  our website (if not already done) and move “lib” folder from package in your Joomla root directory, and rename “lib” folder as “phpgrid”.

Step2: Create a new file ‘demo.php‘ inside ‘phpgrid’ folder and copy paste joomla code snippet from here.

Step3: Install Joomla extension “Sourcerer (free version) By RegularLabs” from Here OR download from our Github Repository.

Step4: Now after installing this extension, edit the article where you want to display grid and include the demo.php file using sourcerer php syntax:

{source}
<?php require_once JPATH_ROOT.'/phpgrid/demo.php'; ?>
{/source}

Step5: A modifications which will allow PHP Grid to perform ADD and EDIT operations inside of Joomla. Edit Joomla ‘index.php‘ file in root folder and paste following code immediateley before the line: $app->execute();
which is just before the end of the file.

// Joomla will read the REQUEST array and the router gets confused when phpgrid posts data
// the data is still in the POST array so removing it this does no harm to PHPGrid
if (isset($_POST['id'])){
unset($_REQUEST['id']);
}

Result: Now Save the article and open it in browser, you will get the demo datagrid.

Next Actions: You can create more grid php files (like in step2) by copying code from package demos and include them using sourcerer syntax (step4) on your desired article of Joomla.

Let us know your feedback. If you have any questions, contact our support center.

Active License Subscription customers can get free upgrade using this link.

PS: Special thanks to Doug Lawson for his contribution in this tutorial.

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!