summaryrefslogtreecommitdiff
path: root/src/web/_controller/projects.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/_controller/projects.php')
-rw-r--r--src/web/_controller/projects.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/web/_controller/projects.php b/src/web/_controller/projects.php
new file mode 100644
index 0000000..9ee2136
--- /dev/null
+++ b/src/web/_controller/projects.php
@@ -0,0 +1,21 @@
+<?php /* Copyright (c) 2024 Freya Murphy */
+class Projects_controller extends Controller {
+
+ private $projects_model;
+
+ function __construct($load) {
+ parent::__construct($load);
+ $this->projects_model = $this->load->model('projects');
+ }
+
+ public function index(): void {
+ parent::index();
+ $data = $this->projects_model->get_data();
+ $this->view('header', $data);
+ $this->view('apps/projects', $data);
+ $this->view('footer', $data);
+ }
+
+}
+
+?>