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
Our repository interface provides the ability to find a single item. In this video we will rely on the methods defined in the interface to display a single blog post.
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
First, let's create the single post view.
0:00
Add views>New File>Single.php.
0:01
We'll add the opening and
closing article tags.
0:11
Again, you could check to make sure
that this post status is public.
0:22
Since this is a single post, we can
let the post title be the page title,
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