ASA PHP Generator online Help
Prev | Return to chapter overview | Next |
OnBeforePageExecute
![](/i/tour-under-title.gif)
This event occurs before other events are declared and allow to create global objects, declare functions, and include third-party libraries. This helps you to define a snapshot of PHP code that will be included into all the pages.
Signature:
function OnBeforePageExecute()
Example:
In our Schema Browser demo project all the code implementing database filter, formatting and highlighting SQL code we entered in the schema_browser_utlis.php file. The following code is used to include it to into all application web pages.
include_once 'schema_browser_utils.php';
Prev | Return to chapter overview | Next |