Création du controller
This commit is contained in:
18
src/Controller/SpeciesController.php
Normal file
18
src/Controller/SpeciesController.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
|
||||
class SpeciesController extends AbstractController
|
||||
{
|
||||
#[Route('/species', name: 'app_species')]
|
||||
public function index(): Response
|
||||
{
|
||||
return $this->render('species/index.html.twig', [
|
||||
'controller_name' => 'SpeciesController',
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user