Welcome Guest, Not a member yet? Register   Sign In
Beginner MVC question
#1

[eluser]Unknown[/eluser]
Hello all,

I'm just beginning with CI and the MVC.

If I want to develop my personal website using MVC the correct way should be to have one model, one controler and one view for each page of my site????

For example,

home_model.php with all the functions to connect with the data base. A home_controler.php to deal with the data and a home_view.php to show the home page.

or

I should have a model with all the database functions and call this model each time that I need to deal with de Data Base, and a controller with differents functions that load differents views.

I'm just looking for the correct way to do the things.

Thanks a lot.




Theme © iAndrew 2016 - Forum software by © MyBB