Summary Files Commits Branches @commit @diff @stats
path: root / src / controllers / DashboardController.php
diff options
context:
space:
mode:
Commit1180687f951cbb0ebf1b2fd9e22df5b2a20fea9b (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-04-03 11:34:24 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-04-03 11:34:24 +0300
Files05038d9e745ea71c91c550178185de4236e01340 /src/controllers/DashboardController.php
devrix-job-board-1180687f951cbb0ebf1b2fd9e22df5b2a20fea9b.tar
devrix-job-board-1180687f951cbb0ebf1b2fd9e22df5b2a20fea9b.tar.gz
devrix-job-board-1180687f951cbb0ebf1b2fd9e22df5b2a20fea9b.zip
Parent9362d6fdfd566f3cc611a02437c6dbdce4f0504b (diff)
Made job offers show all info
1 files changed, 6 insertions, 0 deletions
-rw-r--r--src/controllers/DashboardController.php6
diff --git a/src/controllers/DashboardController.php b/src/controllers/DashboardController.php
index 5bd26d4..548f60b 100644
--- a/src/controllers/DashboardController.php
+++ b/src/controllers/DashboardController.php
@@ -1,11 +1,17 @@
<?php
include_once('controllers/BaseController.php');
include_once('models/JobOffer.php');
+include_once('models/Company.php');
include_once('controllers/EditOfferController.php');
class DashboardController extends BaseController {
+ public static $companies = array();
+
public static function get() {
$jobs = JobOffer::getAllFromDB();
+ foreach(Company::getAllFromDB() as $company) {
+ self::$companies[$company->id] = $company->name;
+ }
include "views/dashboard.php";
}