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

[eluser]Michael Wales[/eluser]
artwork would be one class that would hold your generic information (title, file, uploaded_date, author_id, etc).

comments would be another class that would handle your comment retrieval, comment posting, editing, etc.

rewards would be another class that would handle reward retrieval, reward receiving, etc.

Basically, think of your site as a group of objects sitting on a table. Each unique object should be its own model: a piece of artwork (maybe even the paint, aka: the file that creates that artwork), a reward, a few comments, a list of locations that artwork can be seen, a user that created that artwork, etc.


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