Welcome Guest, Not a member yet? Register   Sign In
Non-database Models?
#1

[eluser]Unknown[/eluser]
Hi All!

Im new to CodeIgniter, and also to the MVC architecture. I taught myself OOPHP recently, so this MVC thing really shakes things up for me, but I clearly see the benefits. My question is regarding models. Do models need to only be for database-related tasks? Im working on a project now that grabs data from another system via an API, and I feel like these methods belong in a model. This keeps the controller code much cleaner and trim as well. Am I right in assuming this, since I am accessing the data from a data source (just not a database)?

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB