symfony_example_app/src/Controller/IndexController.php

17 lines
425 B
PHP
Raw Normal View History

2024-01-16 15:54:06 +00:00
<?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;
}
}