Ensure that the list of possible page positions corresponds to the number of pages that belong to each subject, not to the total number of pages in the table.
- [Instructor] So far in this chapter, we've learned…how we can nest our pages underneath our subjects.…In the last movie, we talked about how we can…more efficiently count the number of pages…that belong to each subject.…I now want to take those to two ideas…and combine them together to talk about how…we scope the page position by its subject.…You may or may not have noticed that we actually…have a problem in our current code.…If we go to one of our subjects, review the pages,…and then I click on one of the pages to edit it,…if I look at the position listing, you'll see that…I have 13 different positions available.…
Why is that?…Well, it's because I have 13 different pages.…But that doesn't seem quite right.…It seems like, instead, that I should have positions…one, two, three and four.…Right, that it should be scoped by the subject.…And then for another subject, such as over here…on Consumer, I ought to have positions one, two and three.…Right? I should never, ever run into a case…where I have position number 12 or 13.…
- Creating a content management system
- Building dynamic content navigation
- Using context and function options for conditional behavior
- Hiding content from the public view
- Insecure direct object reference
- Allowing HTML in dynamic content
- Previewing content in the public context
- Working with cookies and sessions
- Storing status messages in the session
- Secure user authentication (login/logout)
- Regulating page access
- Nesting related resources
- Managing an ordered list automatically
Skill Level Beginner
PHP with MySQL Beyond the Basicswith Kevin Skoglund10h 26m Intermediate
MVC Frameworks for Building PHP Web Applicationswith Drew Falkman2h 57m Intermediate
1. Create a Content Management System
2. Build Dynamic Content Navigation
3. Use Context and Options
4. Cookies and Sessions
5. Regulate Page Access
6. Nesting Related Resources
Next steps1m 15s
- 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.