DB Actions

KAS will automatically submit forms, Table live Fields, Live Forms or regular Form Views and execute the pre-programmed database actions: Insert, Update, Delete, etc. But there are ways to do other actions before or after a Query is executed.

For instance, if before Deleting or Updating an item in the database we need to check or update something else, we can use:
 

/themes/$theme/delete_actions.php
/themes/$theme/update_actions.php

 

Or of we need to perform another action after a query has been executed, then we can use 

 

/themes/$theme/db_actions.php

 

The order of execution is as follows:

 

/themes/$theme/delete_actions.php
/themes/$theme/update_actions.php
- - - - - - - - - - - - -
/core/db_actions.php:
/core/db_actions/update_actions.php
/core/db_actions/actions_switch.php
/core/db_actions/toDo.php
/core/db_actions/payments.php
- - - - - - - - - - - - -
/themes/$theme/db_actions.php