<?php
namespace App\Controller;
use App\Entity\BFEdition;
use App\Entity\BFDistance;
use App\Object\FestivalSearch;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use App\Form\Type\FestivalSearchType;
use App\Utilities\EditionUtilities;
use Knp\Component\Pager\PaginatorInterface;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
class SearchController extends AbstractController
{
public function homesearch(Request $request)
{
$search = new FestivalSearch();
$form = $this->createForm(FestivalSearchType::class, $search,
['action' => $this->generateUrl('home_route',[
'routename' => 'search'
])]);
return $this->render('form/searchform.html.twig', [
'form' => $form->createView(),
'uuid' => uniqid(),
]);
}
}
?>