From 740df2706934231a91c5e2d5061198ea962c357c Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 3 Apr 2024 11:25:57 -0400 Subject: profile page --- src/web/_controller/apps/profile.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/web/_controller/apps/profile.php (limited to 'src/web/_controller/apps') diff --git a/src/web/_controller/apps/profile.php b/src/web/_controller/apps/profile.php new file mode 100644 index 0000000..aaed348 --- /dev/null +++ b/src/web/_controller/apps/profile.php @@ -0,0 +1,35 @@ +profile_model = $this->load->model('apps/profile'); + $this->format_model = $this->load->model('format'); + $this->post_controller = $this->load->controller('_util/post'); + } + + public function index(): void { + parent::index(); + $data = $this->profile_model->get_data(); + + if (!$data) { + $this->error(404); + } + + $this->view('header', $data); + $this->view('apps/profile/main', $data); + $this->view('footer', $data); + } + +} + +?> -- cgit v1.2.3-freya