69 @duckfan77 mvc stands for model, view controller.
Basically for each page you are going to load at least 3 files (or more if you need multiple model or less if you don't need a model) and each file has its puprose
Controller->knows which data and views are currently needed to be rendered. Loads the correct models and runs the correct functions to get the needed data and passes it to the view.
Model->fetches data from various sources (like the database) and makes it usable for the controller/view
View->makes the html using the data it got from the controller
And no, you don't need to create 3 files for each page. The controller and model are classes and you usually group code together that is about the same thing. For example you might make a file called user_controller and use_model. Then both probably have functions like
login(),register(),update(),delete(),profile()
Basically for each page you are going to load at least 3 files (or more if you need multiple model or less if you don't need a model) and each file has its puprose
Controller->knows which data and views are currently needed to be rendered. Loads the correct models and runs the correct functions to get the needed data and passes it to the view.
Model->fetches data from various sources (like the database) and makes it usable for the controller/view
View->makes the html using the data it got from the controller
And no, you don't need to create 3 files for each page. The controller and model are classes and you usually group code together that is about the same thing. For example you might make a file called user_controller and use_model. Then both probably have functions like
login(),register(),update(),delete(),profile()