What is MVC Architecture?

0

MVC stands for Model-View-Controller, it is a famous architecture on the market today. It is divided into 3 parts: Model, View, and Controller. The model will handle the data and logic behind running an application. The view is a lot of what you see on the interface of the application, and it also allows you to display anything you want. The Controller will pass or issue commands to the view and model depending on the user's requirements

Currently, MVC has 2 types, convention-based and configuration-based. Up to now, Magento uses a configuration-based version. This also means that you need a module configuration file to work with the website.

Model:- It is the system modeling level. It is used to maintain system business rules and data persistence.

View:- This is responsible for the user information display layer like product page, contact form, etc. It is maintained through layout files that connect blocks, containers, and UI components to display into a page by a browser.

Controller:- This layer defines the main actions, requests, and responses of the clients. Moreover, it may change the model's state and generate data views of the model layer.

asked Apr 15, 2023 at 00:55
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.