About
This is a very, very simple PHP5 framework.
How it works
A simplified walkthrough of the whole process might go like this:
- Apache receives a request for your site.
- Apache parses the .htaccess file in
public
. - The .htaccess tells Apache if it's not an existing file or directory inside
public
, then send the requst topublic/index.php
. index.php
includes the framework dispatcher.- The framework dispatcher tries to boot the framework.
- The framework parses the url to figure out what page is requested.
- If the page does not exist, the framework throws an error, and sends a 404 back to the client.
- The framework tries to render the page and store it for the layout and if it fails, it throws an error.
- The framework then renders the layout, and sticks the rendered page where needed.
- Apache sends it all down to the client.