Phork Framework User Guide
Application Flow
- paths.php (optional)
- set site directory path
- set install directory path
- set site type (eg. dev, stage, live, etc)
- index.php
- set any paths not set by paths.php
- add the install path to the include path
- include any application class overrides (eg. AppLoader)
- include the bootstrap
- initialize the bootstrap
- load the configuration files
- load any language files
- load the libraries (cache, database)
- register the error handler
- initialize debugging
- parse the URL
- start the session
- register the bootstrap
- run the bootstrap
- initialize any hooks
- run any 'bootstrap.pre-run' events
- determine the controller based on the URL and any optional routing overrides
- run any 'bootstrap.pre-init' events
- initialize the controller
- turn out output buffering via the display object (optional)
- run any 'bootstrap.post-init' events
- run the controller
- determine the controller's display method based on the URL
- call the display method to build the page
- add one or more nodes to the display object
- run any 'bootstrap.post-run' events
- display the page
- run any 'display.pre-headers' events
- send headers
- build the page from the node(s)
- run any 'display.pre-output' events
- print the output