Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <main>
- <table>
- <tr>
- <th>ID</th>
- <th>Title</th>
- <th>Content</th>
- <th>Date</th>
- <th>Author</th>
- <th>Action</th>
- </tr>
- <?php foreach ($this->posts as $post) : ?>
- <tr>
- <td><?= $post['id'] ?></td>
- <td><?= htmlspecialchars($post['title']) ?></td>
- <td><?= cutLongText($post['content']) ?></td>
- <td><?= htmlspecialchars($post['date']) ?></td>
- <td><?= $post['user_id'] ?></td>
- <td><a href="<?=APP_ROOT?>/posts/edit/<?=$post['id']?> ">[Edit}></a>
- <a href="<?=APP_ROOT?>/posts/delete/<?=$post['id']?> ">[Delete]</a> </td>
- </tr>
- <?php endforeach ?>
- </table>
- <a href="<?=APP_ROOT?>/posts/create">[Create New]</a>
- </main>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement