Summary Files Commits Branches @commit @diff @stats
path: root / src / controllers / LandingController.php
diff options
context:
space:
mode:
1 files changed, 16 insertions, 0 deletions
-rw-r--r--src/controllers/LandingController.php16
diff --git a/src/controllers/LandingController.php b/src/controllers/LandingController.php
new file mode 100644
index 0000000..ffa8644
--- /dev/null
+++ b/src/controllers/LandingController.php
@@ -0,0 +1,16 @@
+<?php
+include_once("models/JobOffer.php");
+include_once('models/Company.php');
+include_once("controllers/BaseController.php");
+
+class LandingController extends BaseController {
+ private static $companies = array();
+
+ public static function get() {
+ $jobs = JobOffer::getAllFromDB();
+ foreach(Company::getAllFromDB() as $company) {
+ self::$companies[$company->id] = $company->name;
+ }
+ include "views/landing.php";
+ }
+}