Changes between Version 1 and Version 2 of HowTos/HowToUseHelpers

Show
Ignore:
Timestamp:
11/16/09 23:29:10 (16 years ago)
Author:
cfgrok (IP: 64.30.223.5)
Comment:

Renamed page for alpha sorting on home page

Legend:

Unmodified
Added
Removed
Modified
  • HowTos/HowToUseHelpers

    v1 v2  
    1 = How To Use Helpers = 
     1= Helpers = 
    22 
    33Model-Glue provides a great separation of concerns when it comes to your web application. It helps you clearly differentiate between views, controllers, and model files. However, sometimes there are utilities that don't quite fit in the MVC design. Consider a utility that formats strings such that URLs and email addresses are automatically linked. Where would you put that? It isn't a controller concern. It isn't a model. You could simply put it in a view file, but then you end up (possibly) repeating the same function in multiple places.