Write your own PHP MVC Framework (Part 1 & 2)
Part 1 Feeling lazy? Download link here Download Framework Part 1 (ZIP File) Make sure you edit config/config.php and add your database details. Point your browser to localhost/FRAMEWORKDIR/items/viewall to see output. Part 2 If you haven’t already, please read Part 1 of the PHP MVC tutorial . A lot of changes have been incorporated in this part. Unlike the last tutorial, I have not pasted the code directly here, and I suggest you download the framework before reading on. In the example, we have implemented a simple e-commerce website consisting of categories, subcategories, products and tags (for products). The example will help you understand the various relationships between the tables and most of the new functionality provided by this part of the framework. What’s New config/inflection.php The inflection configuration file enables us to use irregular words i.e. words which do not have a standard plural name. This file is used in co...