From 0c2ec5ea3330c4b8a01c0f2c05b1e54475dd94d9 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Sun, 9 Sep 2018 04:02:36 -0400 Subject: app/model: Refactor helper function into navigation class --- app/model/Navigation.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/model') diff --git a/app/model/Navigation.php b/app/model/Navigation.php index 4db89b5..b10bf45 100644 --- a/app/model/Navigation.php +++ b/app/model/Navigation.php @@ -28,4 +28,14 @@ class Navigation echo str_repeat("\t", 4) . "' . $title . '' . "\n"; } } + + public function generateTitle() + { + switch ($_SERVER['REQUEST_URI']) { + case '/contact/': + $uri = $_SERVER['REQUEST_URI']; + echo $titleHeader = 'Contact - '; + break; + } + } } -- cgit v1.2.3