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
Now that we have our recipe class complete, we’ll create all the recipe objects for our collection.
Ways to pull the recipes
- Typed straight into code (single or individual files)
- Read from individual text files
- Stored in a Database
- Pulled from an API / JSON feed
Note: This course uses option 1 with a single file.
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
even if you know how it's done.
0:00
We still have more to learn.
0:00
In the next section, we'll be
grouping our objects into collections
0:01
by creating a cookbook for our recipes.
0:05
To do that,
we'll need some recipes to work with.
0:08
Plus, I promised you
some of my own recipes.
0:11
So how do we load up
a bunch of recipe objects?
0:14
There are many different ways
to load these recipes or
0:18
any other data into our program.
0:21
Most likely, you would want to
use some sort of database or
0:23
pull from a json feed or
something similar.
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