I need to create a custom php page to retrieve data for an ajax call. What are the php files in Appgini that need to have require_once() statements in the new php file?
I hope this makes since...
TD
Custom php page includes
Re: Custom php page includes
Just the lib.php which is in the root of the generated application.
Code: Select all
include_once(__DIR__ . "lib.php"); // If your ajax file is going to be on the app root
include_once(__DIR__ . "/../lib.php"); // OR use this if you are putting your custom ajax file inside hooks folder
Re: Custom php page includes
You also may want to have a look at the Documentation of AppGini for security etc.
https://bigprof.com/appgini/help/advanc ... ess-pages/
Have a nice day.
https://bigprof.com/appgini/help/advanc ... ess-pages/
Have a nice day.
Zala.
Appgini 25.12, MacOS 15.5 Windows 11 on Parallels.
Appgini 25.12, MacOS 15.5 Windows 11 on Parallels.