blob: dc9da4d4d3d9759dbdec30216d3ec24c75fe3d23 (
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
25
26
27
|
<?php /* Copyright (c) 2024 Freya Murphy */
class Home_controller extends XSS_Controller {
// the home model
protected $home_model;
// the post controller
protected $post_controller;
function __construct() {
parent::__construct();
$this->home_model = $this->load_model('home');
$this->post_controller = $this->load_controller('_post');
$this->load_lang('post', '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);
}
}
?>
|