lancis
Elite Member
- Jul 31, 2010
- 1,682
- 2,443
In a classic app you mostly have a .php file for every page, and you have some sort of global.php that holds the header and footer of your site. with MVC (Model, View, Controller) you have 1 index.php that is talking to the outside (the controller) that uses a 'router' that determines what you are trying to view (l ooks at the requested url), a bit like mod_rewrite but easier and better, then you have the View that uses a template to build the webpages you want to 'view'. The Model is a representation from the DB in php and is build in doctrine or propel, which make using the DB very easy. You don't really need to know SQL anymore (but it always is nice if you do)
This is how I build websites actually. Was absolutely sure that I was the first to invent such a scheme, lol.