diff options
Diffstat (limited to 'src/web/_model/apps/home.php')
-rw-r--r-- | src/web/_model/apps/home.php | 22 |
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; - } -} |