0% found this document useful (0 votes)
218 views11 pages

SADP Case Study

This document discusses the Model-View-Controller (MVC) framework. It describes the three main components of MVC - the Model, View, and Controller. The Model manages the data logic, the View handles the user interface, and the Controller processes requests and interacts between the Model and View. Popular MVC web frameworks include Django, Spring MVC, Ruby on Rails, and Laravel. The document provides an example of how MVC could be applied to an e-commerce website built with Django. It also compares Django and Laravel frameworks in terms of technology used, security features, popularity, learning curve, and performance.

Uploaded by

Shane Mak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
218 views11 pages

SADP Case Study

This document discusses the Model-View-Controller (MVC) framework. It describes the three main components of MVC - the Model, View, and Controller. The Model manages the data logic, the View handles the user interface, and the Controller processes requests and interacts between the Model and View. Popular MVC web frameworks include Django, Spring MVC, Ruby on Rails, and Laravel. The document provides an example of how MVC could be applied to an e-commerce website built with Django. It also compares Django and Laravel frameworks in terms of technology used, security features, popularity, learning curve, and performance.

Uploaded by

Shane Mak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Case Study: MVC Frameworks

Mohan Madame
Mandar Kulkarni
Yogesh Khubchandani
MVC Framework

● Model-View-Controller (MVC) is an architectural pattern that separates an


application into three main logical components:
○ Model
○ View
○ Controller.
● Each of these components are built to handle specific development
aspects of an application.
● It is one of the most frequently used industry-standard web development
framework to create scalable and extensible projects.
MVC Framework

Flow of application

1. View requests controller.


2. Controllers updates model.
3. Model notifies controller.
4. Controller updates the view.
1. The Model component corresponds to all the
data-related logic.
2. This can represent either the data that is being
transferred between the View and Controller
components or any other business logic-related
Model data.
3. For example, a Customer object will retrieve the
customer information from the database, manipulate
it and update it data back to the database or use it to
render data.
1. The View component is used for all the UI logic
2. It helps to segregate the ui part from other business
logic and routing part.
View 3. For example, the Customer view will include all the UI
components such as text boxes, dropdowns, etc.
that the final user interacts with.
1. Controllers act as an interface between Model and
View components to process all the incoming
requests.
Controller 2. It manipulate data using the Model component and
interact with the Views to render the final output.
3. For example, the Customer controller will handle all
the interactions and inputs from the Customer View
and update the database using the Customer Model.
Popular MVC web frameworks

● Django
● Spring MVC
● Catalyst
● Ruby on Rails
● Laravel
● Fuel PHP
● Symphony
Application:
E-Commerce website using django

Functionality of the website

1. Register / login
2. View items
3. Add items to cart
4. Search items
5. Checkout
Demo
Comparison of MVC

Technology Django Laravel

Type Built with Python Built with PHP

Security Highly secure for Implements basic


enterprise level security features
applications

GitHub Stars 43,384 34,292

Learning Curve Fairly easy to pick Steep learning curve


up

Performance Quite fast Relatively slow

Number of 205,106 121,173


websites
Thank You !

You might also like