symfony_example_app/src/Controller/IndexController.php
2024-01-16 16:54:06 +01:00

17 lines
425 B
PHP

<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class IndexController extends AbstractController {
#[Route('/', name: 'homepage')]
public function indexAction(): Response
{
$result = $this->render('index/homepage.html.twig');
return $result;
}
}