Search code examples
phpphpgrid

phpgrid - change edit route


I am using phpgrid in a Slim Framework integration and I see all the editing and creating functionality of the phpgrid system sends the data to a file called "edit.php" that sits inside the phpgrid folder.

Is there any way that I can change that and actually route the result of the form to a different file, preferably a controller in Slim?

L.E: It's worth to mention that I am not using a DB connection to process the data. Instead, I use an API to fetch and process my data, and I feed the data to phpgrid in an array.


Solution

  • It seams that on closer inspection to the documentation, somewhere hidden without the ability to clearly search for it, there is a method called: set_js_editurl().

    This method lets you set your own URL and everything else works the same :)

    Happy coding, Ares D.