ports beim erstellen des types erstellen

This commit is contained in:
2026-02-11 15:25:52 +01:00
parent 0d3c6e1ae7
commit a6b56ffd75
7 changed files with 199 additions and 33 deletions

View File

@@ -44,10 +44,11 @@ if (!in_array($action, $validActions)) {
}
/* =========================
* Template-Header laden
* Template-Header laden (nur für non-save Aktionen)
* ========================= */
require_once __DIR__ . '/templates/header.php';
// TODO: ggf. Navigation einbinden
if ($action !== 'save') {
require_once __DIR__ . '/templates/header.php';
}
/* =========================
* Modul laden
@@ -58,10 +59,14 @@ if (file_exists($modulePath)) {
require_once $modulePath;
} else {
// TODO: Fehlerseite oder 404
echo "<p>Die Seite existiert noch nicht.</p>".$modulePath;
if ($action !== 'save') {
echo "<p>Die Seite existiert noch nicht.</p>".$modulePath;
}
}
/* =========================
* Template-Footer laden
* Template-Footer laden (nur für non-save Aktionen)
* ========================= */
require_once __DIR__ . '/templates/footer.php';
if ($action !== 'save') {
require_once __DIR__ . '/templates/footer.php';
}