summaryrefslogtreecommitdiff
path: root/src/web/_controller/home.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/web/_controller/home.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/web/_controller/home.php b/src/web/_controller/home.php
index 89e67e8..28ccd1e 100644
--- a/src/web/_controller/home.php
+++ b/src/web/_controller/home.php
@@ -1,11 +1,19 @@
<?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 = Model::get_base_data();
+ $data = $this->home_model->get_data();
$this->view('header', $data);
$this->view('home/main', $data);
$this->view('footer', $data);