News Feed
Sections




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

Developer.com:
Fat Models and Skinny Controllers Bring Out the Best in Your MVC Framework
January 04, 2010 @ 12:09:20

This new article on Developer.com advocates one way of working with the MVC pattern in your framework-based applications - fat models and skinny controllers.

But a framework shouldn't be considered a panacea; it remains paramount for you to continue exploring and implementing best practices, which will further enhance the maintainability, reusability, and readability of your code. One such best practice involves adhering to a design decision that produces "fat models" and "skinny controllers." The term "fat" is derived from the idea of packing as much of the data-related logic into the model as possible while maintaining a streamlined, almost barren controller.

The concept applies to several web application frameworks out there, but they use the Zend Framework to talk about the wrong way - putting most of the application logic in the controllers - and what they think is a more flexible, organized way to handle the code. A bit of code is included to help illustrate their point.

0 comments voice your opinion now!
fat model skinny controller zendframework framework


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: Using Action Helpers To Implement Re-Usable Widgets

phpDevelopment Blog: Zend Framework Tutorial Series: Part 3 – Login and Signup with (RE)Captcha

DevShed: Embedding Model Data in Views with CodeIgniter

The Bakery: Four New Articles/Components (Colors, Models, InotImg & CakeSWXPHP)

Paul Jones' Blog: Aura for PHP 5.3+, aka Solar 2.0


Community Events

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


conference voicesoftheelephpant introduction performance podcast api php7 extension release interview install community laravel version opinion framework example library series symfony2

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