review homepage
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user