WIP Suche implementiert, sowie Sortieren der Ergebnisse #19
@@ -5,6 +5,11 @@ if (!isset($abs_path)) {
|
||||
require_once "path.php";
|
||||
}
|
||||
require_once $abs_path . "/php/controller/index-controller.php";
|
||||
|
||||
if (isset($_GET["pfad"]) && $_GET["pfad"] === "search-results") {
|
||||
require_once $abs_path . "/php/controller/search-results-controller.php";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<!--
|
||||
@@ -37,12 +42,6 @@ require_once $abs_path . "/php/controller/index-controller.php";
|
||||
//Dynamischer Inhalt:
|
||||
if (isset($_GET["pfad"])) {
|
||||
|
||||
if ($_GET["pfad"] === "search-results") {
|
||||
if (file_exists($abs_path . '/php/controller/search-results-controller.php')) {
|
||||
include_once $abs_path . '/php/controller/search-results-controller.php';
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists($abs_path . '/content/' . $_GET["pfad"] . '.php')) {
|
||||
include_once $abs_path . '/content/' . $_GET["pfad"] . '.php';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user