From 033a72052f6e3e8788fff1f3f5c6b8150b62c8b8 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 30 Dec 2021 20:38:03 +0200 Subject: [PATCH] rename following page to follow --- .../controller/{following.php => follow.php} | 2 +- src/application/view/follow.phtml | 14 ++++++++ src/application/view/following.phtml | 32 ------------------- src/bootstrap.php | 4 +-- 4 files changed, 17 insertions(+), 35 deletions(-) rename src/application/controller/{following.php => follow.php} (87%) create mode 100644 src/application/view/follow.phtml delete mode 100644 src/application/view/following.phtml diff --git a/src/application/controller/following.php b/src/application/controller/follow.php similarity index 87% rename from src/application/controller/following.php rename to src/application/controller/follow.php index 06849ef..b904d5c 100644 --- a/src/application/controller/following.php +++ b/src/application/controller/follow.php @@ -19,4 +19,4 @@ foreach ((array) $_twister->getFollowing($_SESSION['userName']) as $followingUse $followingUsersTotal++; } -require(PROJECT_DIR . '/application/view/following.phtml'); \ No newline at end of file +require(PROJECT_DIR . '/application/view/follow.phtml'); \ No newline at end of file diff --git a/src/application/view/follow.phtml b/src/application/view/follow.phtml new file mode 100644 index 0000000..64ac317 --- /dev/null +++ b/src/application/view/follow.phtml @@ -0,0 +1,14 @@ + +
+
+
+ +
+ @ +
+ +

+
+
+
+
\ No newline at end of file diff --git a/src/application/view/following.phtml b/src/application/view/following.phtml deleted file mode 100644 index f9c3f6f..0000000 --- a/src/application/view/following.phtml +++ /dev/null @@ -1,32 +0,0 @@ - -
- -
-
\ No newline at end of file diff --git a/src/bootstrap.php b/src/bootstrap.php index d5073a7..ac3f479 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -61,8 +61,8 @@ if (isset($_GET['_route_'])) { case 'logout': require(PROJECT_DIR . '/application/controller/logout.php'); break; - case 'following': - require(PROJECT_DIR . '/application/controller/following.php'); + case 'follow': + require(PROJECT_DIR . '/application/controller/follow.php'); break; case 'register': require(PROJECT_DIR . '/application/controller/register.php');