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 Object-Oriented PHP Basics!
You have completed Object-Oriented PHP Basics!
Preview
We have a basic structure for our collection object, but it's not really doing any more than getting and setting an array, so let's start enhancing our collection by pulling specific information from the objects.
Documentation
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
control and keep the functionality of our
cookbook grouped together with the data.
0:00
So what are these extra features that
our cookbook brings to the party.
0:00
First off, we want to be able to
get a list of the recipe titles.
0:04
There are actually two parts to this
action, grabbing the titles and
0:09
displaying the list.
0:13
These are two very separate
responsibilities, grabbing the data, and
0:15
displaying the data.
0:19
In the last stage, we talked about
the Single Responsibility Principle, and
0:20
we set up a new render class.
0:25
The render class controls
how something is shown, and
0:27
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