Model View Controller

Model View Controller (MVC) is a software architecture pattern used to separate concerns and improve code organization. The benefits of using MVC include increased code reusability, modularity, and maintainability. By separating the application's logic into separate components (Model, View, and Controller), you can easily modify or update individual parts of the application without affecting the others making the application more flexible and easier to maintain over time.

  • Models

    manages the data

  • Views

    how the data is displayed to the user (templates & HTML)

  • Controllers

    the glue that connects the models with the views

Last updated