<?php include_once __DIR__ . '/config.php'; include_once ENGINE_PATH . 'managers/CategorieManager.php'; $categories = CategorieManager::getInstance()->getAll(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Forum HovenPay</title> </head> <body> <header> <h1>Forum HovenPlay</h1> <table border="1"> <?php foreach ($categories as $categorie) { $forums = $categorie->getForums(); ?> <tr><td><?php echo $categorie->getNom(); ?> </td></tr> <tr><td> <?php if (isset($forums)) { ?> <table border="2"> <?php foreach ($forums as $forum) {