MVC (Model-View-Controller) is the architecture that provides flexibility and scalability of the applications.
=> It is almost having the same concept in any other language like PHP, Perl or Python. It is one of the major used architecture involved today due to its simplicity.
=> Controller is the main part in this kind of architecture where it handles the request that is coming from another controller.
=> Controller contacts the view and passes on the request to the view and it also interacts with the model to define the type of request.
=> Model is responsible for interacting with the database and provides the responses to the controller.
=> Controller takes the response and gives the response in the output form to the user that has made the request.