mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
poc form SDK (extends to form)
This commit is contained in:
31
sources/DI/Controller/DefaultController.php
Normal file
31
sources/DI/Controller/DefaultController.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Combodo\iTop\DI\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
/**
|
||||
* Default controller.
|
||||
*
|
||||
*/
|
||||
class DefaultController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* @Route ("/", name="root")
|
||||
*/
|
||||
public function root(): Response
|
||||
{
|
||||
return $this->redirectToRoute('home');
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route ("/home", name="home")
|
||||
*/
|
||||
public function home(): Response
|
||||
{
|
||||
return $this->render('DI/home.html.twig');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user