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();