What is MVC framework?
Rebuni_tech team
Model–view–controller (MVC) is a software design pattern commonly used for developing user interfaces that divide the related program logic into three interconnected elements. This is done to separate internal representations of information from the ways information is presented to and accepted from the user.
Model
The central component of the pattern. It is the application's dynamic data structure, independent of the user interface. It directly manages the data, logic, and rules of the application.
View
Any representation of information such as a chart, diagram, or table. Multiple views of the same information are possible, such as a bar chart for management and a tabular view for accountants.
Controller
Accepts input and converts it to commands for the model or view.
Why do we use MVC Framework?
MVC Frameworks simplify working with complex technologies by;
- Hiding all the complex implementation details.
- Providing standard methods that we can use to build our applications.
- Increased developer productivity, is because the base implementation of activities such as connecting to the database, sanitizing user input, etc. are already partially implemented.
- Adherence to professional coding standards
File Structure MVC fame work
Here is a sample PHP file structure for the MVC framework.

Here is a link for a simple MVC Project on how to set up the MVC environment and how to connect to the database so I strongly suggest to watching this video.
suggested video link: https://www.youtube.com/playlist?list=PLLQuc_7jk__Uk_QnJMPndbdKECcTEwTA1
source: https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller
Thank you ! Rebuni Tech Team