diff options
Made index.php a router and added the basis of landing view and controller
1 files changed, 9 insertions, 0 deletions
| -rw-r--r-- | src/controllers/LandingController.php | 9 |
diff --git a/src/controllers/LandingController.php b/src/controllers/LandingController.php new file mode 100644 index 0000000..80e0b5b --- /dev/null +++ b/src/controllers/LandingController.php @@ -0,0 +1,9 @@ +<?php +include_once("models/JobOffer.php"); + +class LandingController { + function invoke() { + $jobs = JobOffer::getAllFromDB(); + include "views/landing.php"; + } +} |
