Welcome Guest, Not a member yet? Register   Sign In
Advice on web application design
#5

[eluser]renownedmedia[/eluser]
Models don't have to handle all of your business logic. I prefer to let my controller control my logic.

For models, I use them as an interaction with any sort of data, so that my controllers can be clean and my models be dirty. Like, some model functions will return an array from a db, some will return a single scalar value.

This keeps the clean business logic in the controllers without having to worry about data storage conventions!


Messages In This Thread
Advice on web application design - by El Forum - 10-19-2009, 12:50 PM
Advice on web application design - by El Forum - 10-19-2009, 02:24 PM
Advice on web application design - by El Forum - 10-19-2009, 02:48 PM
Advice on web application design - by El Forum - 10-19-2009, 04:23 PM
Advice on web application design - by El Forum - 10-19-2009, 04:31 PM
Advice on web application design - by El Forum - 10-20-2009, 02:09 AM
Advice on web application design - by El Forum - 10-20-2009, 08:06 AM
Advice on web application design - by El Forum - 10-20-2009, 03:26 PM
Advice on web application design - by El Forum - 10-20-2009, 10:15 PM
Advice on web application design - by El Forum - 10-21-2009, 08:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB