<?= $this->html->link('admin/post/create', 'Ajouter') ?>

<br>

<?php foreach($posts as $post) : ?>
    <?= $this->html->link('admin/post/delete/'. $post->id, 'Supprimer') ?>
    <?= $this->html->link('admin/post/update/'. $post->id, 'Modifier') ?>
    
    <h2><?= $post->name ?></h2>
    <p><?= $post->content ?></p>
<?php endforeach ?>
<?= $this->html->link('admin/post/create', 'Ajouter') ?>

<br>

<?php foreach($posts as $post) : ?>
    <?= $this->html->link('admin/post/' . $post->id . '/delete', 'Supprimer') ?>
    <?= $this->html->link('admin/post/' . $post->id . '/update', 'Modifier') ?>
    
    <h2><?= $post->name ?></h2>
    <p><?= $post->content ?></p>
<?php endforeach ?>
Change link for delete and update
Change link for delete and update
