review homepage

This commit is contained in:
2025-03-22 12:10:01 +01:00
parent 40274c306c
commit fd472ca39e
5 changed files with 744 additions and 253 deletions

View File

@ -71,6 +71,22 @@ class HomeController extends AbstractController
]);
}
public function userhero($userpseudo)
{
$em = $this->getDoctrine()->getManager();
$user=$em->getRepository("App:User")->findOneBy(["slug"=>$userpseudo]);
$illustrations = $em->getRepository("App:Illustration")->findByUser($user);
$webzines = $em->getRepository("App:Webzine")->findBy(["user"=>$user], ['set' => 'ASC', 'order' => 'ASC']);
$config = $em->getRepository("App:Config")->getUserConfig($user);
return $this->render('Home/userhero.html.twig',[
"user" => $user,
"config" => $config,
"illustrations" => $illustrations,
"webzines" => $webzines
]);
}
public function feedhome($nb)
{