Welcome Guest, Not a member yet? Register   Sign In
Attempt 2 understand models and controllers
#3

[eluser]Samus[/eluser]
[quote author="dnc" date="1337655841"]Yes, it needs to go in a controller or at the least a common functions file possibly in your include_path. Models are designed for database operations, per the guide What is a Model

.[/quote]
I disagree.

Models were designed for dealing with data, yes that does include database operations, but it is t limited to that.

I don't see any reason why this can't go in a model, you're extracting data from a directory, sure sounds like you're dealing with data there.


Messages In This Thread
Attempt 2 understand models and controllers - by El Forum - 05-21-2012, 12:07 PM
Attempt 2 understand models and controllers - by El Forum - 05-21-2012, 08:04 PM
Attempt 2 understand models and controllers - by El Forum - 05-22-2012, 12:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB