Summary Files Commits Branches @commit @diff @stats
path: root / src / controllers / LandingController.php
blob: ffa864462480146499e0ba022bc179ced6f303de (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";
	}
}