Hello
When I change the folder location for the PHP grid files, what line of code do I need to alter in each PHP grid file to be able to locate the config.php file. Is it the one shown below? If so, what does it need to be? What is the format? Not sure what the two “../../” mean (two directories above?)?
// include db config
include_once(“../../config.php”);
thank you
Tony
Yes, as the demo files are located e.g. in demos/editing then config is 2 level up.
Thanks Abu. So if the grid php file is located only one directory below the config.php file, then I should use only one level (example 1 below)? I have tried the below with a folder called test that is one level below the config.php folder and it does not seem to work. Does the folder naming matter? I have also tried placing a grid php file in the same directory as the config.php file and it does not work with the 2nd example below. 1st example // include db config include_once(“../config.php”); 2nd example // include db config include_once(“config.php”); thanks Tony
Please view source – ctrl+u and see if you can get html code.
If html is there then you need to adjust the css/js include files path in html code with same level hierarchy.
If there is blank page in view source, then it is a server side error and can be checked by enabling display_error flag to 1 on top of lib/inc/jqgrid_dist.php
I get a blank web page when i try to view a grid php file (http://localhost/php_grid/test/autocomplete1.php) that is one level down from the config.php file utilizing the code below.
// include db config
include_once(“../config.php”);
See link to HTML for the blank page
https://gist.github.com/TboneDubu/1899b87a4ea07729920ae902ca46246c
thanks
Tony
The JS / CSS files path should also be changed to “..” instead of “../..”
The JS / CSS files path should also be changed to “..” instead of “../..”
Thank you Abu. That worked great.
I really appreciate your fast responses!
By the way. This is the best Grid Framework and CRUD Generator I have ever used. I have tried all of your competitors and more until I stumbled onto your applications and none of the other applications even come close to PHP Grid Framework. This application is extremely well thought out, very easy to use and the quality of forms/reports that are produced and the UI are exceptional! Well done!
thanks
Tony
Thanks for your highly motivating feedback.