public function details($id) { $movieManager = new \Model\MovieManager(); $movie = $movieManager->getIdMovie($id); include "views/details.php"; }
/** *affiche la page details d'un film */ public function details() { $movieManager = new \Model\MovieManager(); $movie = $movieManager->find($_GET['id']); include "views/details.php"; }