From 63fbcd5bb99420755a9aec98a7db23c7e575c037 Mon Sep 17 00:00:00 2001 From: Meisterlala <6453306+Meisterlala@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:24:04 +0200 Subject: [PATCH] Refactor navigation links in index.php and nav.php --- www/dynamic_web_app/index.php | 1 + www/dynamic_web_app/views/index.view.php | 2 +- www/dynamic_web_app/views/partials/nav.php | 9 ++++++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/www/dynamic_web_app/index.php b/www/dynamic_web_app/index.php index 0465f08..82d41bf 100644 --- a/www/dynamic_web_app/index.php +++ b/www/dynamic_web_app/index.php @@ -2,4 +2,5 @@ $heading = "Home"; + require "views/index.view.php"; diff --git a/www/dynamic_web_app/views/index.view.php b/www/dynamic_web_app/views/index.view.php index d4dbc09..3818df7 100644 --- a/www/dynamic_web_app/views/index.view.php +++ b/www/dynamic_web_app/views/index.view.php @@ -4,7 +4,7 @@
- About page + Home page with cool text
\ No newline at end of file diff --git a/www/dynamic_web_app/views/partials/nav.php b/www/dynamic_web_app/views/partials/nav.php index a2372c6..a98348c 100644 --- a/www/dynamic_web_app/views/partials/nav.php +++ b/www/dynamic_web_app/views/partials/nav.php @@ -8,9 +8,12 @@ -- 2.51.2