Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Understanding MVC!
You have completed Understanding MVC!
Preview
Learn what a "model" is and its role in the MVC framework.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
in other words,
what the application knows or its data.
0:00
Models represent data and
interact with the database.
0:01
Creating, reading, updating, and
deleting data, or CRUD for short.
0:04
For example,
say a user visits a movie page on IMDb,
0:10
the URL is handed to the controller.
0:15
Remember, controllers handle all
of the communication in the app.
0:18
The controller knows it needs some data so
it talks to a particular model for
0:22
movie information.
0:27
The controller doesn't know how
the model does what it does.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up