<?php
require_once BASE_PATH . '/app/models/Service.php';
require_once BASE_PATH . '/app/models/Post.php';
require_once BASE_PATH . '/app/models/GalleryItem.php';
class HomeController { public function index(): void { $featuredServices = array_slice((new Service())->getPublic(), 0, 6); $latestPosts = (new Post())->getPublished('', 0, 3, 0); $latestGallery = (new GalleryItem())->getVisible('', 6, 0); require BASE_PATH . '/app/views/home/index.php'; } }
