Ajoute la gateway des commentaires et corrige les vues
This commit is contained in:
19
views/comment.php
Normal file
19
views/comment.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php $params['title'] = 'Comment'; ?>
|
||||
<h1>Comments</h1>
|
||||
<?php foreach ($params['comments'] as $comment) : ?>
|
||||
<div class="card">
|
||||
<header class="card-header">
|
||||
<p class="card-header-title">
|
||||
<?= $comment->getCommentId() ?>
|
||||
</p>
|
||||
</header>
|
||||
<div class="card-content">
|
||||
<div class="content">
|
||||
<?= "AuthorId :" . $comment->getAuthorId() . " published on " . $comment->getPublicationDate()->format('Y-m-d H:i:s') ?>
|
||||
</div>
|
||||
<div class="content">
|
||||
<?= $comment->getContent() ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach ?>
|
Reference in New Issue
Block a user