SAND-framework/console/skel/symfony-app/src/Controller/ErrorController.php
Emmanuel ROY 5e9bd26db2 Modification gitignore
TODO: créé les pages de blog (sommaire,news) permettant d'afficher les fichiers md
2020-04-01 14:44:36 +02:00

25 lines
605 B
PHP

<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class ErrorController extends AbstractController
{
/**
* @Route("/symfony/unauthorized", name="unauthorized")
*/
public function indexAction()
{
print_r("<pre>");
//print_r($this->get('session'));
print_r($_COOKIE);
print_r($_SESSION);
print_r("</pre>");
// replace this example code with whatever you need
return $this->render('default/unauthorized.html.twig', [
]);
}
}