From 7ff02a6a940c223cd18f0deeafe6cc31de82860b Mon Sep 17 00:00:00 2001 From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com> Date: Wed, 27 May 2026 19:14:45 +0200 Subject: [PATCH] testing --- php/controller/createArticle-controller.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/php/controller/createArticle-controller.php b/php/controller/createArticle-controller.php index ce732ca..59745ba 100644 --- a/php/controller/createArticle-controller.php +++ b/php/controller/createArticle-controller.php @@ -20,8 +20,10 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { $author = "max.mustermann"; // TODO: später aus Session den angemeldeten Nutzer beziehen. $tags = $_POST["tags"]; - $articleManager->addArticle($title, $content, $category, $author, $tags); - + //$articleManager->addArticle($title, $content, $category, $author, $tags); + foreach ($articleManager->getAllArticles() as $article) { + echo htmlspecialchars($article['title'])."
"; + } // Weiterleitung zur Homepage header("location: ../../index.php"); exit();