💻 Model View Controller (MVC) is an architectural paradigm. It is popular because a lot of frameworks use it, such as Ruby on Rails, cakephp, and Django.
- Clients are generally browsers. It is basically an envirnment users use to access the application.
- Servers are where programs are run to fulfill the needs of a client.
- Database is where data is stored. Servers can pull data from database, processes it as per the needs of the client and sends to the client where is it is displayed to the user.
In MVC architecture, separate files take care of these three parts.
- Model takes care of the Database related activities
- View takes care of the Client
- Controller takes care of the Server
View listens to the Controller and Controller talks to the Model and vice versa. At all times Controller is there in between the two. There is no direct connection between View and Model.
Comments
Post a Comment