15 lines
375 B
PHP
15 lines
375 B
PHP
<?php
|
|
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';
|