src/Controller/RealisationController.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Form\DevisType;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class RealisationController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/realisation", name="realisation")
  11.      */
  12.     public function index(): Response
  13.     {
  14.         $form $this->createForm(DevisType::class);
  15.         return $this->render('realisations/realisations.html.twig', ['form'=>$form->createView()]);
  16.     }
  17. }