Summary Files Commits Branches @commit @diff @stats
path: root / src / controllers / LandingController.php
diff options
context:
space:
mode:
Commit0aa067b783ec3ba374380b82612eb876634c78f8 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-04-01 13:27:08 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-04-01 13:27:08 +0300
Filesa2c01131f4176013873449f0bd5075762a55f357 /src/controllers/LandingController.php
devrix-job-board-0aa067b783ec3ba374380b82612eb876634c78f8.tar
devrix-job-board-0aa067b783ec3ba374380b82612eb876634c78f8.tar.gz
devrix-job-board-0aa067b783ec3ba374380b82612eb876634c78f8.zip
Parentff5e34d0a5e07ff2f2181f362044cb77f262c147 (diff)
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.php9
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";
+ }
+}