blob: 9e81751550f4d1e6d80f134dea94676db7aad222 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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');
}
}
|