Handler Functions
In WebTemplate you can register handler functions to certain events.
-
Form Submissions where the form has a custom action
WTForm::registerFormHandler()
-
Calculatiing the discount for a shopping cart
WTCart::registerCartDiscountFunction()
-
Handling the request from a browser for a particular URI
$GLOBALS["WT"]->registerURIHandler()
-
Processing the request from a browser for any URI
$GLOBALS["WT"]->registerURIProcessor()
-
Performing actions before a page is outputted
Page::registerPreRenderHandler()
-
Calculating Freight
WTFreight::registerFreightFunction()
See the PHP Coding notes and Examples section of the documentation on how to use these functions