17 lines
401 B
PHP
17 lines
401 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
define('BASE_PATH', realpath(__DIR__ . '/../'));
|
|
|
|
require_once BASE_PATH . '/src/helpers.php';
|
|
require_once BASE_PATH . '/config/config.php';
|
|
require_once BASE_PATH . '/src/db.php';
|
|
require_once BASE_PATH . '/src/PostManager.php';
|
|
|
|
$postManager = new PostManager($db);
|
|
|
|
ob_start();
|
|
|
|
$posts = $postManager->getAll();
|
|
require_once BASE_PATH . '/templates/post_list.php';
|