From 000405709ccba23a25b7fc2c0b6857b603f99e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 23 Oct 2013 16:00:03 +0200 Subject: [PATCH] add default layout --- Controller/DefaultController.php | 4 ++-- Resources/config/routing.yml | 2 +- Resources/views/layout.html.twig | 25 +++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 Resources/views/layout.html.twig 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 !

+ +
+ Primary +
+ + + + + \ No newline at end of file