Welcome Guest, Not a member yet? Register   Sign In
Suggestion for best practice models
#2

[eluser]Jondolar[/eluser]
I don't see a problem having multiple functions in one model class to handle all of the typical queries that you would need to populate a page of artwork (art info, comments, stats, etc). I think that the strict way is that a model is supposed to handle data for one object type. Your "artwork" has info, comments and stats so it makes sense to me.

It looks like your "browser" class is performing functions of a typical controller but I don't have much info on that.


Messages In This Thread
Suggestion for best practice models - by El Forum - 07-01-2009, 04:38 AM
Suggestion for best practice models - by El Forum - 07-01-2009, 04:13 PM
Suggestion for best practice models - by El Forum - 07-02-2009, 01:51 AM
Suggestion for best practice models - by El Forum - 07-02-2009, 02:09 AM
Suggestion for best practice models - by El Forum - 07-02-2009, 02:19 AM
Suggestion for best practice models - by El Forum - 07-02-2009, 02:47 AM
Suggestion for best practice models - by El Forum - 07-02-2009, 07:50 AM
Suggestion for best practice models - by El Forum - 07-02-2009, 08:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB