News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Padraic Brady's Blog:
The M in MVC Why Models are Misunderstood and Unappreciated
December 04, 2008 @ 11:19:36

In this new post to his blog Padraic Brady looks at why models are "misunderstood and unappreciated" in a Model/View/Controller sort of world.

By the time I'd finished both chapters [of my Zend Framework book] I realised I had spent a lot of space explaining the Model, most of it discussing how the Zend Framework does not actually give you one. In fact, no web application framework offers a complete Model (for reasons I'll explain later). However nearly all frameworks manage to avoid making that perfectly obvious. Instead they continually link the concept of a Model to the related, but not identical, concept of data access. This is quite misleading.

He looks at two things models are good for (maintaining state and enforcing rules on the data in the current state), how it seems most PHP developers perceive them, how controllers can be turned into "mutated models" and the idea that models should be classes and controllers are just processes (handlers for requests).

0 comments voice your opinion now!
modelviewcontroller mvc model underappreciated misunderstood controller


blog comments powered by Disqus

Similar Posts

DZone.com: Sencha Touch 2 Models - Loading And Saving Model Data Using a Proxy, PHP Example

Markus Wolff's Blog: Extending Zend_Controller_Action

Rob Allen's Blog: Access view variables in another view model

Quinton Parker's Blog: Smarty. Solving the wrong problem since 2001

Stephan Hochdörfer: Controller classes vs. Action classes


Community Events

Don't see your event here?
Let us know!


install release series introduction php7 xdebug api opinion unittest podcast community laravel5 interview language example extension laravel library framework voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework