Surviving The Deep End: Chapter 3 Models

Just got down reading chapter 3 of the free Zend Framework book called “Surviving The Deep End.“  Chapter 3 was about models and was very informative.  Many developers have different views on what the model should do. I am in total agreement with this description of a model in the book.  I love the topic of “Skinny Controllers, Fat Models” Vs. the “Fat Stupid Ugly Controller.”  When developing, keep your controllers small and models big.  Models are the business logic, and the controller and views are part of the presentation layer (MVC).  Another thing I didn’t realize was in Zend Framework you can call the model from the view.  There is an example in Chapter 3 on why you would do this and it is very logical.  If the controller doesn’t use the data why push it through another layer?  There is no Data police!

Now its off to read Appendix A “Performance Optimisation For Zend Framework Applications

You can read my review of Chapter 1 & 2 here.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>