protected function enregistrer_commentaireAction() { $article_id = $_POST['article_id']; $contenu = $_POST['contenu']; $am = new \Modele\CommentaireManager(); $newcommentaire = $am->envoyerCommentaire($contenu, $article_id); header("Location: app.php?action=detail&id='{$article_id}'"); }