<?php require_once "conf/top.php"; include_once "models/class.Doc.php"; if (isset($_REQUEST['id'])) { $id = $_REQUEST['id']; $doc = new Doc(); $doc_l_p = $doc->getDocFromF($id); echo $twig->render("mes_cours.html.twig", array("cours" => $cours_l, "doc" => $doc_l, "folder" => $folder_l, "docf" => $doc_l_p)); } else { $session->redirect('index.php'); }