From 2601a1c1ca0b45ccc2630b223153c5dd4c26dcaf Mon Sep 17 00:00:00 2001 From: rirat-0 Date: Tue, 2 Jun 2026 13:54:04 +0200 Subject: [PATCH] naechster debugging versuch --- content/search-results.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/content/search-results.php b/content/search-results.php index 22c1024..0ce027c 100644 --- a/content/search-results.php +++ b/content/search-results.php @@ -2,6 +2,22 @@ session_start(); //debugging +if (isset($_GET["q"])) { + + $controllerPath = dirname(__DIR__) . "/php/controller/search-results-controller.php"; + + if (file_exists($controllerPath)) { + // existierende datei wird eingebunden + include_once $controllerPath; + } else { + // anzeigen falls pfad falsch ist + echo "
"; + echo "PFAD-FEHLER: Der Controller wurde unter folgendem Pfad nicht gefunden:
"; + echo "" . htmlspecialchars($controllerPath) . "
"; + echo "richtiger pfad name?"; + echo "
"; + } +} echo "
";
 echo "Aktuelle URL-Parameter (GET): "; print_r($_GET);
 echo "Aktueller Session-Inhalt (SESSION): "; print_r($_SESSION);