ports beim erstellen des types erstellen
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user