summaryrefslogtreecommitdiff
path: root/src/web/_controller/apps
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-04-05 10:46:09 -0400
committerFreya Murphy <freya@freyacat.org>2024-04-05 10:46:09 -0400
commit530bbf058781e00e588f1457b6ee589a64b74da1 (patch)
treec6cdd382a86d55538686293e51a1fc056cb59029 /src/web/_controller/apps
parentremove var (diff)
downloadxssbook2-530bbf058781e00e588f1457b6ee589a64b74da1.tar.gz
xssbook2-530bbf058781e00e588f1457b6ee589a64b74da1.tar.bz2
xssbook2-530bbf058781e00e588f1457b6ee589a64b74da1.zip
i did thing oh god large commit
Diffstat (limited to 'src/web/_controller/apps')
-rw-r--r--src/web/_controller/apps/people.php7
-rw-r--r--src/web/_controller/apps/profile.php6
2 files changed, 12 insertions, 1 deletions
diff --git a/src/web/_controller/apps/people.php b/src/web/_controller/apps/people.php
index 19910ac..86da3b3 100644
--- a/src/web/_controller/apps/people.php
+++ b/src/web/_controller/apps/people.php
@@ -17,10 +17,17 @@ class People_controller extends Controller {
parent::index();
$data = $this->people_model->get_data();
$this->view('header', $data);
+ $this->view('apps/people/header', $data);
$this->view('apps/people/main', $data);
+ $this->view('apps/people/footer', $data);
$this->view('footer', $data);
}
+ public function content(): void {
+ $data = $this->people_model->get_data();
+ $this->view('apps/people/main', $data);
+ }
+
/**
* @return array<string,mixed>
*/
diff --git a/src/web/_controller/apps/profile.php b/src/web/_controller/apps/profile.php
index aaed348..3bc9a91 100644
--- a/src/web/_controller/apps/profile.php
+++ b/src/web/_controller/apps/profile.php
@@ -7,12 +7,16 @@ class Profile_controller extends Controller {
// the format model
protected $format_model;
- // the post model
+ // the post controller
protected $post_controller;
+ // the people controller
+ protected $people_controller;
+
function __construct($load) {
parent::__construct($load);
$this->profile_model = $this->load->model('apps/profile');
+ $this->people_controller = $this->load->controller('apps/people');
$this->format_model = $this->load->model('format');
$this->post_controller = $this->load->controller('_util/post');
}