How It Works
Page generation process in the framework can be described as follows:
- All HTTP requests go through index.php
- index.php loads config.inc.php
- config.inc.php defines global constants and variables
- index.php starts START_ENGINE script (defined in config.inc.php)
- START_ENGINE requires object loading function library
- START_ENGINE loads "Mapper.Mapper" object
- START_ENGINE calls mapRequest() on the Mapper object
- Mapper object loads an apropriate Page object and calls its action
- Page object renders HTML for the content part. Page object may use other modules and their objects for this.
- Page object calls Site object to wrap page content in an appropriate site template
- Page object returns full page HTML to Mapper object
- Mapper object prints out HTML
- START_ENGINE unloads objects that require unloading
- Happy End