summaryrefslogtreecommitdiff
path: root/src/web/_model/apps/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/_model/apps/home.php')
-rw-r--r--src/web/_model/apps/home.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/web/_model/apps/home.php b/src/web/_model/apps/home.php
deleted file mode 100644
index 634bc67..0000000
--- a/src/web/_model/apps/home.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php /* Copyright (c) 2024 Freya Murphy */
-class Home_model extends Model {
-
- function __construct($load) {
- parent::__construct($load);
- }
-
- private function get_posts(): array {
- return $this->db
- ->select('*')
- ->from('xssbook.post')
- ->limit(20)
- ->rows();
- }
-
- public function get_data(): ?array {
- $data = parent::get_data();
- $data['title'] = ucfirst(lang('title'));
- $data['posts'] = $this->get_posts();
- return $data;
- }
-}