src/Controller/HomeController.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. /** 
  7. * @Route("/", name="home")
  8. */
  9. class HomeController extends AbstractController
  10. {
  11.     /** 
  12.     * @Route("", name="_index")
  13.     */
  14.     public function index(): Response
  15.     {
  16.         return $this->render('base.html.twig', [
  17.             'titulo_pagina' => 'Inicio'
  18.         ]);
  19.     }
  20.     /** 
  21.     * @Route("/privacidad", name="_politica_privacidad")
  22.     */
  23.     public function provacidad(): Response
  24.     {
  25.         return $this->render('privacidad.html.twig', [
  26.             'titulo_pagina' => 'Política de privacidad'
  27.         ]);
  28.     }
  29.     /** 
  30.     * @Route("/terminos", name="_terminos_uso")
  31.     */
  32.     public function terminos(): Response
  33.     {
  34.         return $this->render('terminos.html.twig', [
  35.             'titulo_pagina' => 'Términos de uso'
  36.         ]);
  37.     }
  38. }