src/Controller/HomeController.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 HomeController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/home", name="home")
  11.      */
  12.     public function index(): Response
  13.     {
  14.         $form $this->createForm(DevisType::class);
  15.         return $this->render('home/index.html.twig', [
  16.             'form'=>$form->createView()
  17.         ]);
  18.     }
  19. }