| 1 |
lars |
1 |
<com:TContent ID="Main">
|
|
|
2 |
|
|
|
3 |
<h1>Post Management Overview</h1>
|
|
|
4 |
|
|
|
5 |
<p>
|
|
|
6 |
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.
|
|
|
7 |
</p>
|
|
|
8 |
|
|
|
9 |
<p>
|
|
|
10 |
According to the requirements, we need to create the following pages organized under a new directory <tt>protected/pages/posts</tt>.
|
|
|
11 |
</p>
|
|
|
12 |
|
|
|
13 |
<ul>
|
|
|
14 |
<li><tt>ListPost</tt> displays posts by their creation time in descending order.</li>
|
|
|
15 |
<li><tt>ReadPost</tt> displays the detail of a post.</li>
|
|
|
16 |
<li><tt>NewPost</tt> allows registered users to create a new post.</li>
|
|
|
17 |
<li><tt>EditPost</tt> allows the author or the administrator to edit an existing post.</li>
|
|
|
18 |
</ul>
|
|
|
19 |
|
|
|
20 |
<p>
|
|
|
21 |
After finishing this section, we shall expect to see the following directories and files:
|
|
|
22 |
</p>
|
|
|
23 |
|
|
|
24 |
<img src="<%~ directories.gif %>" class="output" />
|
|
|
25 |
|
|
|
26 |
</com:TContent>
|