<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class HomeController extends AbstractController
{
/**
* @Route("/", name="home")
*/
public function index()
{
try {
return $this->render('home/index.html.twig', [
'controller_name' => 'HomeController',
]);
} catch (\Symfony\Component\Routing\Exception\ResourceNotFoundException $e) {
return $this->render('error/index.html.twig', [
'message' => 'Enlace no encontrado'
]);
}
}
}