Let’s agree that, using PHP MVC frameworks is essential when developing a Web application in most cases. It helps to keep the code organized, structured and easily understood, plus using all the provided functionalities and utilities with the framework. Well, you don’t have to use someone else’s framework as long as you follow the MVC patten when writing your code (separate the View components from the Models and Controllers).
As the term MVC stands, your application must have the Model, View and the Controller components. If you decide to use one of the PHP MVC frameworks out-there, for example: ZEND, Codeignitor and Yii, these components are provided for you and you simply extend and use them for your own purposes.
This is all well and good if your application sticks to the components provided with the framework you use. If for whatever reason, you need to alter the way the framework operates or try to extend its structure to suite your own needs, it might end-up in a mess that makes using the framework part of the problem rather than the solution.
My next post will talk about this issue, propose a solution and provide a working example with source code.