This commit is contained in:
Simon Vieille 2016-01-12 20:31:48 +01:00
parent f4d49348fb
commit 5096c7bb6f
5 changed files with 11 additions and 3 deletions

2
.gitignore vendored
View file

@ -12,3 +12,5 @@
!var/SymfonyRequirements.php !var/SymfonyRequirements.php
/vendor/ /vendor/
/web/bundles/ /web/bundles/
/tags
*.swp

View file

@ -4,14 +4,16 @@ namespace Mmi\Bundle\ChallengeBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
class DefaultController extends Controller class DefaultController extends Controller
{ {
/** /**
* @Route("/") * @Route("/")
* @Template()
*/ */
public function indexAction() public function indexAction()
{ {
return $this->render('MmiChallengeBundle:Default:index.html.twig'); return [];
} }
} }

View file

@ -0,0 +1 @@
{% extends "MmiChallengeBundle:Default:base.html.twig" %}

View file

@ -4,14 +4,16 @@ namespace Mmi\Bundle\EnigmaBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
class DefaultController extends Controller class DefaultController extends Controller
{ {
/** /**
* @Route("/") * @Route("/enigma")
* @Template()
*/ */
public function indexAction() public function indexAction()
{ {
return $this->render('MmiEnigmaBundle:Default:index.html.twig'); return [];
} }
} }

View file

@ -0,0 +1 @@
{% extends "MmiEnigmaBundle:Default:base.html.twig" %}