diff options
author | Thedro Neely <thedroneely@gmail.com> | 2018-09-09 04:02:36 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2018-09-09 04:05:52 -0400 |
commit | 0c2ec5ea3330c4b8a01c0f2c05b1e54475dd94d9 (patch) | |
tree | 6b1b796ca9cc7620e003744ffd6be35858345ad7 /app/model | |
parent | 2bdcd9d9283b44e7c35822aa1317013928006fd8 (diff) | |
download | thedroneely.com-0c2ec5ea3330c4b8a01c0f2c05b1e54475dd94d9.tar.gz thedroneely.com-0c2ec5ea3330c4b8a01c0f2c05b1e54475dd94d9.tar.bz2 thedroneely.com-0c2ec5ea3330c4b8a01c0f2c05b1e54475dd94d9.zip |
app/model: Refactor helper function into navigation class
Diffstat (limited to 'app/model')
-rw-r--r-- | app/model/Navigation.php | 10 |
1 files changed, 10 insertions, 0 deletions
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) . "<a class=\"navbar-item$append\"" . ' href="' . $route['uri'] . '">' . $title . '</a>' . "\n"; } } + + public function generateTitle() + { + switch ($_SERVER['REQUEST_URI']) { + case '/contact/': + $uri = $_SERVER['REQUEST_URI']; + echo $titleHeader = 'Contact - '; + break; + } + } } |