diff --git a/Controller/DefaultController.php b/Controller/DefaultController.php index d825856ff..2893bca18 100644 --- a/Controller/DefaultController.php +++ b/Controller/DefaultController.php @@ -6,8 +6,8 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { - public function indexAction($name) + public function indexAction() { - return $this->render('CLChillMainBundle:Default:index.html.twig', array('name' => $name)); + return $this->render('CLChillMainBundle::layout.html.twig'); } } diff --git a/Resources/config/routing.yml b/Resources/config/routing.yml index 624859b1f..661af236e 100644 --- a/Resources/config/routing.yml +++ b/Resources/config/routing.yml @@ -1,3 +1,3 @@ cl_chill_main_homepage: - pattern: /hello/{name} + pattern: /hello defaults: { _controller: CLChillMainBundle:Default:index } diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig new file mode 100644 index 000000000..2c6a19f05 --- /dev/null +++ b/Resources/views/layout.html.twig @@ -0,0 +1,25 @@ + + +
+ {% stylesheets filter="compass" output="css/all.css" + "@CLChillMainBundle/Resources/assets/gumpy/sass/gumby.scss" %} + + {% endstylesheets %} + + + + + + + + +Hello !
+ +