...
Most functions called are globals from func.inc.php
or view.inc.php.
Module-specific controller: New-style application (e.g. page=basket)
When we look at the request handling of a new-style application, we find the statement loadApp('basket')
instead of the controller itself. This includes the application itself (given as parameter to loadApp
) as well as the core application. Stylesheet and javascript from the application is added to the output template. Control flow is handled over to the application by creating the controller ( BasketControl
) and calling the method defined by the GET parameter a (
or index
if none is given).
Afterwards, there is optionally another method called:
Code Block | ||||
---|---|---|---|---|
| ||||
if(($sub = $app->getSubFunc()) !== false) // $app being the controller, e.g. $app = new BasketControl;
{
$app->$sub();
} |
Back to front controller
Afterwards, the menu is build and added to the output, flash messages (from Session of previous accesses) are added.
...