setup basic app controller
This commit is contained in:
parent
af10620337
commit
5a32d90adc
2 changed files with 38 additions and 0 deletions
18
src/Controller/AppController.php
Normal file
18
src/Controller/AppController.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\Annotation\Route;
|
||||
|
||||
class AppController extends AbstractController
|
||||
{
|
||||
#[Route('/homepage', name: 'homepage')]
|
||||
public function index(): Response
|
||||
{
|
||||
return $this->render('app/index.html.twig', [
|
||||
'controller_name' => 'AppController',
|
||||
]);
|
||||
}
|
||||
}
|
Reference in a new issue