Add a PHP page to the project that will display the properties of a single bicycle record.
- [Instructor] In the last movie,…we created a new method which would find a record by its ID.…I want to build on that and in this movie,…I want to take that object that we've just instantiated…and use it to display a detail page for the bicycle.…In your exercise files,…I've included a new file called detail.php…which we can just drag into the public directory…and then when we go into our project,…it'll show up right there…and you can see that it just has the same kind of thing…we've been working with on other pages.…It's got initialize.php, page title.…
It's got a public header.…There's a footer at the bottom.…It's got a link to go back to the inventory…and then it's got code to display the details of a bicycle…so we have to have a bicycle object and once we have that,…it'll display its properties,…the bike brand, the bike model, the year, the category,…and so on all the way down the line…so it's going to just display…all the different properties of the bicycle.…We first have to find the bicycle though…so that's going to be up here in the top.…
Note: This is an intermediate-level training course that assumes you have existing knowledge of PHP. To refresh your skills, check out PHP Essential Training and PHP: Object-Oriented Programming.
- Creating a project database and tables
- Connecting to the database
- Database queries with OOP
- The active record design pattern
- Defining a database-driven class
- Performing common database tasks with OOP
- Creating inheritable and reusable code
- Object-oriented user authentication
- Object-oriented pagination
Skill Level Intermediate
Consuming RESTful APIs in PHP with Guzzlewith Justin Yost2h 12m Intermediate
PHP: Accessing Databases with PDO and MySQLiwith David Powers3h 47m Intermediate
1. Overview and Project Setup
2. The Database Connection
3. Define a Database-Driven Class
4. Object-Oriented CRUD
5. Object-Oriented Authentication
6. Object-Oriented Pagination
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.