Wasabi Posted March 31, 2011 Share Posted March 31, 2011 Has anyone read and can review the following articles on the MVC design pattern in PHP? Model View Controller MVC-PHPORG The Model-View-Controller (MVC) Design Pattern for PHP TIA for the infinite wisdom of this list. 1 Link to comment Share on other sites More sharing options...
Larry Posted April 4, 2011 Share Posted April 4, 2011 Sure. In looking at the first article, some thoughts... - I disagree with the calling the MVC design pattern a "framework". A design pattern is a standardized way of solving a problem using code. A framework is a set of code for rapid development. - Although frameworks normally use a single entry file, like index.php, there's a strong argument that running all requests through a single point of entry is a poor design choice and should be avoided, if possible. - The inconsistency of the case of variables and classes bothers me. Other than that, I think the article and code is generally okay. There are certainly other ways of doing the same thing but I don't have absolute rules against the way things are done there. I'll look at the other tutorial on another day. Link to comment Share on other sites More sharing options...
Wasabi Posted April 5, 2011 Author Share Posted April 5, 2011 Many thanks, I await your review of the second article. Link to comment Share on other sites More sharing options...
Larry Posted April 7, 2011 Share Posted April 7, 2011 As for the second article, I'll start by saying these two articles just remind me that for a while there everyone wanted to make their own framework! My second thought is it's written for PHP 4, so I don't know how useful the actual code will be, considering the serious changes to objects in PHP 5. My third thought is the article is too long to read and review it! Link to comment Share on other sites More sharing options...
Wasabi Posted April 7, 2011 Author Share Posted April 7, 2011 I'll read the Gang of Four Publication, and see NETTUTS. Thanks Larry, insightful and witty replies. Link to comment Share on other sites More sharing options...
Recommended Posts