Start of simple, start off clean.
I am going to assume a few things in these posts,
PHP 5.2 or above. ( 5.3 is better )
mySQL is our database of choice.
You understand the basics of setting up a virtual host/development area, and setting up your database.
Setting up your index file.
The ‘index.php’ is going to handle all requests. We will define the necessary contacts and then call out bootstrap file which starts and loads all of our needed classes.
from there, we load our bootstrap file that loads all needed classes.
The Core::Router() function does the routing.
The router function will check based on the 1st and 2nd segment to see if a matching view exists and then parse that view in to the main template file.
Download the source files and have a look trough, I have commented most functions, Follow trough from the index file and follow the includes.
There is no use of the database or sessions yet so just drop this on your web server and run it.
[download id="12"]

