Summary Files Commits Branches @commit @diff @stats
path: root / src / controllers
diff options
context:
space:
mode:
2 files changed, 14 insertions, 14 deletions
-rw-r--r--src/controllers/BaseController.php19
-rw-r--r--src/controllers/LandingController.php9
diff --git a/src/controllers/BaseController.php b/src/controllers/BaseController.php
index fd4bedd..2c2a647 100644
--- a/src/controllers/BaseController.php
+++ b/src/controllers/BaseController.php
@@ -1,5 +1,5 @@
<?php
-abstract class BaseController {
+class BaseController {
public static function invoke() {
switch ($_SERVER["REQUEST_METHOD"]) {
case "POST":
@@ -17,11 +17,20 @@ abstract class BaseController {
}
}
- abstract protected static function get();
+ protected static function get() {
+ echo "GET method not implemented!";
+ }
- abstract protected static function post();
+ protected static function post() {
- abstract protected static function put();
+ echo "POST method not implemented!";
+ }
- abstract protected static function delete();
+ protected static function put() {
+ echo "PUT method not implemented!";
+ }
+
+ protected static function delete() {
+ echo "DELETE method not implemented!";
+ }
}
diff --git a/src/controllers/LandingController.php b/src/controllers/LandingController.php
index 9062918..aa28505 100644
--- a/src/controllers/LandingController.php
+++ b/src/controllers/LandingController.php
@@ -7,13 +7,4 @@ class LandingController extends BaseController {
$jobs = JobOffer::getAllFromDB();
include "views/landing.php";
}
-
- protected static function post() {
- }
-
- protected static function put() {
- }
-
- protected static function delete() {
- }
}