From 91880b163d7cc1a5e483ab6e2095395869384fc7 Mon Sep 17 00:00:00 2001
From: NOrtmann1 <145041949+NOrtmann1@users.noreply.github.com>
Date: Wed, 27 May 2026 19:38:38 +0200
Subject: [PATCH] erste funktionale Version
---
php/controller/createArticle-controller.php | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/php/controller/createArticle-controller.php b/php/controller/createArticle-controller.php
index f5ec3c4..1a7e3cf 100644
--- a/php/controller/createArticle-controller.php
+++ b/php/controller/createArticle-controller.php
@@ -21,17 +21,8 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$articleManager->addArticle($title, $content, $author, $category, $tags);
- foreach ($articleManager->getAllArticles() as $article) {
- echo htmlspecialchars($article["id"])."
";
- echo htmlspecialchars($article['title'])."
";
- echo htmlspecialchars($article['content'])."
";
- echo htmlspecialchars($article['author'])."
";
- echo htmlspecialchars($article['category'])."
";
- echo htmlspecialchars($article['tags'])."
";
- echo htmlspecialchars($article['date'])."
";
- }
// Weiterleitung zur Homepage
- //header("location: ../../index.php");
+ header("location: ../../index.php");
exit();
}