This is an updated version of the Model View Controller pattern which attempts to adhere more stringently to the definition of that pattern.
1) The first version of this PHP pattern can be found here. Thanks to some useful comments, I’ve updated it now to be closer to the widely accepted definition of an MVC pattern. This article updates the code while leaving the earlier article to give an overview of the concepts.
As an interesting side note, ran into Phrame today: a port of the Jakarta Struts project to PHP, which provides an excellent means for achieving “looser” coupling between Model and View (loose coupling?).
UML wise we’re now talking
I’ll leave it otherwise for the code to explain itself, so we can move on to other things...
Resources
Jason E. Sweat does a great job of explaining MVC in the May 2003 php|arch edition
