Affiche le nom d'utilisateur pour chaque commentaire

This commit is contained in:
2022-12-06 09:51:39 +01:00
parent 235b509d00
commit b188dc8cd0
3 changed files with 24 additions and 3 deletions

View File

@@ -17,7 +17,7 @@
<?php foreach ($params['comments'] as $comment) : ?>
<article class="message">
<header class="message-header">
From <?= $comment->getAuthorId() ?> published on <?= $comment->getPublicationDate()->format('Y-m-d H:i:s') ?>
From <?= $comment->getAuthorLogin() ?> published on <?= $comment->getPublicationDate()->format('Y-m-d H:i:s') ?>
</header>
<div class="message-body">
<?= $comment->getContent() ?>