How It Works

Page generation process in the framework can be described as follows:

  1. All HTTP requests go through index.php
  2. index.php loads config.inc.php
  3. config.inc.php defines global constants and variables
  4. index.php starts START_ENGINE script (defined in config.inc.php)
  5. START_ENGINE requires object loading function library
  6. START_ENGINE loads "Mapper.Mapper" object
  7. START_ENGINE calls mapRequest() on the Mapper object
  8. Mapper object loads an apropriate Page object and calls its action
  9. Page object renders HTML for the content part. Page object may use other modules and their objects for this.
  10. Page object calls Site object to wrap page content in an appropriate site template
  11. Page object returns full page HTML to Mapper object
  12. Mapper object prints out HTML
  13. START_ENGINE unloads objects that require unloading
  14. Happy End