CHAPTER 8

image

Showing Blog Entries

The entry editor is well on its way. You can use it to create new blog entries, which will be saved in the database. You are probably slowly developing some understanding of the model-view-controller (MVC) paradigm, but surely, you need some more practice to become comfortable using it.

In this chapter, you will learn how to display all blog entries on your index.php page. In the process, you will revisit much of what you have seen or learned so far. I will also introduce the following new topics:

  • Making a new front controller
  • Updating your table data gateway: adding a method to your Blog_Entry_Table class
  • Iterating ...

Get PHP for Absolute Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.