[Draft 2/26/2014 11:53:50 PM]
- Apache rewrite to
public/index.php
, or serve the file if it exists (images, css, etc). - Check for
down
file (down for maintenance flag) and display maintenance file (maintenance.php
) if applicable. - Include the application bootstrap (
include.php
). - Load the Composer autoloader.
- Load any files not autoloader compatible (i.e. function definitions).
- Load the local environment files (An error will occur if this does not exist), then the global environment files.
- Initialise, and return the application (to
public/index.php
). - Dispatch the application [routes].
- Iterate all routes.
- Detect if there is a valid response (render, redirect, etc).
- If there is no response, add an appropriate response. Typically a 404 not found render/header response.
- Process/output the response.