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 Designing Interfaces in PHP!
You have completed Designing Interfaces in PHP!
Preview
We'll be using multiple interfaces as we extend our content types. This will allow us to create different groups of functionality that will be used throughout my application.
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
So far, the site only displays posts,
but we want to show pages as well.
0:00
Each of these content types will
have many things in common, but
0:04
they will also have their own features.
0:08
Let's get our site ready for
these different content types, and
0:10
expand the post features at the same time.
0:13
Let's start by creating a new class
in our source classes folder.
0:16
We'll name this Posts.php.
0:22
Our class Posts is going
to extends Collection.
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