Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?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';
|
||||
Reference in New Issue
Block a user