The generated "hooks" folder

Hooks were added to AppGini as of version 4.50. Older versions don't support this feature.
The hooks folder is where all your custom-defined code should be placed. AppGini generates the hook files into this folder only if they don't exist. AppGini doesn't overwrite these files later. So, your customized code is retained safely no matter how many times you regenerate your project code.

This folder contains the following files:
  • __global.php: This file contains hook functions that get called when a new member signs up, when a member signs in successfully and when a member fails to sign in. More info ...

  • tablename.php: For each table in your project, a hook file named the same as the table name is created. This file contains hook functions that get called when a new record is added, when a record is edited, when a record is deleted, … etc. These hooks are table-specific. That's why each table in your project has its own hook file. More info ...

  • index.html: This file should not be edited. It just redirects visitors who try to access the hooks folder to the main page.