Welcome Guest, Not a member yet? Register   Sign In
What is the right way use a Controller or Model to do this
#1

[eluser]Unknown[/eluser]
Good night guys,
I am developing a application and I decide to use CodeIgniter, but I have a doubt.

What is the right way, to do the "select" (list registers of table) method in the Controller or use a method in the Model to do the "select"?

Thanks.
#2

[eluser]WanWizard[/eluser]
CodeIgniter follows the MVC design pattern, where the controller determines the flow from request to the output, and all processing happens in the model. So that's where you should do your database queries as well...




Theme © iAndrew 2016 - Forum software by © MyBB