$abs_path

This commit is contained in:
NOrtmann1
2026-05-26 18:37:56 +02:00
parent b090195d9f
commit 949ca542ab
3 changed files with 17 additions and 13 deletions
+4 -4
View File
@@ -3,10 +3,10 @@
Inhalt: Formular für die Erstellung eines neuen Beitrags
-->
<?php
include_once 'php/model/ArticleManagerDAO.php';
include_once 'php/model/ArticleManager.php';
include_once $abs_path . '/php/model/ArticleManagerDAO.php';
include_once $abs_path . '/php/model/ArticleManager.php';
if(isset($_POST['title']) && isset($_POST['content']) && isset($_POST['post-category'])) {
if(isset($_POST['title']) && isset($_POST['content']) && isset($_POST['category'])) {
}else{
// TODO: Exception werfen.
@@ -14,7 +14,7 @@
}
?>
<form method="post" action="php/controller/createArticle-controller.php" id="editor-form" class="wp-editor-scope editor-container">
<form method="post" action="../php/controller/createArticle-controller.php" id="editor-form" class="wp-editor-scope editor-container">
<main class="editor-main">
<input type="text" id="title" name="title" placeholder="Titel hier eingeben" required>