Welcome Guest, Not a member yet? Register   Sign In
Model or Library
#2

[eluser]Phil Sturgeon[/eluser]
Models and libraries are both just Classes. You can use either for either, so it comes down to whatever you feel right doing.

The basic generalisations that I follow are:

Data handling = model.

Group of functions that share properties = library

Models can be used to get data from anywhere, getting meta data from an image is the same as a database or XML file. However if you do any processing on the images, resizing, etc then that would go in a library.


Messages In This Thread
Model or Library - by El Forum - 05-22-2009, 02:11 AM
Model or Library - by El Forum - 05-22-2009, 02:26 AM
Model or Library - by El Forum - 05-22-2009, 03:24 AM
Model or Library - by El Forum - 05-22-2009, 03:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB