<?php
// src/Controller/Defaultontroller.php
namespace App\Controller;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
class DefaultController extends AbstractController
{
/**
* @Route("/admin")
*/
public function admin()
{
return new Response('<html><body>Admin page!</body></html>');
}
/**
* @Route("/", name="welcome")
*/
public function index()
{
return $this->render('accueil/dmhome.html.twig', array(
));
}
public function autreindex()
{
return new Response(
'<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8"></head><body>Site de test</body></html>'
);
}
}