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

[eluser]Hyra[/eluser]
This has been asked a hundred times over, but when looking at the various threads I can't find an "answer" to my specific issue. Maybe it's the fact it's morning and the coffee hasn't kicked in yet. But you loving cuddly igniters may have a solution.

Thing is, i'm reworking my site (artinvolved.com) which is 100% CodeIgniter ignited.

Now, as you can see it's all about images and users. I'm just having a big problem with the question: "Should i use libraries or models for the various tasks?"

For instance, the Browse model i have right now. It works fine, the controller creates an instance of the browser, gives it some parameters for "search", "size of thumbs" and so on. The model then retrieves all the thumbs + information about its creator back to me, which can be used. Same when viewing a single artwork.

But, wouldn't this just as well go into a library?

It would work exactly the same, as it's just a "dumb" little thing that retrieves data (i smell model) and finds the appropiate additional content (i smell library) that goes with it.

Any thoughts?


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