summaryrefslogtreecommitdiff
path: root/src/web/_controller/home.php
blob: 28ccd1e693e26488f8cdc7e3ad039a01026fc6c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php /* Copyright (c) 2024 Freya Murphy */
class Home_controller extends Controller {

	private $home_model;

	function __construct()
	{
		$this->home_model = $this->load_model('home');
		$this->load_lang('common', 'home');
	}

	public function index(): void
	{
		parent::index();

		$data = $this->home_model->get_data();
		$this->view('header', $data);
		$this->view('home/main', $data);
		$this->view('footer', $data);
	}

}

?>