Alex Tech Adventures The webs best tutorials!

Better model design and preparation for assertions.

(0 votes, average 0 out of 5)
As much as this video is designed to be a preparation for the next one on ACL assertions, anyone can benefit from my techniques described here on separating business logic in models from controller and viewer.  Watch this if you are not clear on how to best utilize your models vs. controller vs.viewer.


Key notes in the presentation:
  • Move business logic code (book lister) from controller to model.  Controller is then used only for linking variables between model and view, not generating anything on its own.
  • Create a separate model dedicated to book gathering from DB and ...
  • ... a model / class for a book thus making book an object.
  • Looking at an advantage of further utilizing OOP by having each set of related data, in our case a book, as a complete object rather than a linear array.

Download source

Last Updated ( Thursday, 17 December 2009 02:27 )  
You need to login or register to post comments.
Discuss...
You are here: Home Development Zend Framework Better model design and preparation for assertions.

Statistics

Members : 657
Content : 42
Web Links : 1
Content View Hits : 88225

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 59 guests and 1 member online