Post Management Overview

In this section, we create pages that are related with post management. In particular, we implement the CRUD (Create-Retrieve-Update-Delete) operations with respect to blog posts.

According to the requirements, we need to create the following pages organized under a new directory protected/pages/posts.

  • ListPost displays posts by their creation time in descending order.
  • ReadPost displays the detail of a post.
  • NewPost allows registered users to create a new post.
  • EditPost allows the author or the administrator to edit an existing post.

After finishing this section, we shall expect to see the following directories and files: