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 the role of the view in presenting information to an end user.
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
Back to the IMDb example, the model
sends data to the controller, but
0:00
the controller can't just send
raw information back to the user.
0:01
It needs to make sure
the data is presentable.
0:05
That's the job of the view.
0:08
The view is the programming
that handles presentation.
0:10
As with models,
you'll have lots of different views.
0:13
One for each page or
each component on a page.
0:17
And almost always, you'll use some
templating language that combines data and
0:21
templates to create robust web pages or
views.
0:26
The view essentially returns
a complete web page to the controller,
0:29
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