add default layout

This commit is contained in:
Julien Fastré 2013-10-23 16:00:03 +02:00
parent e68a1c8e8b
commit 000405709c
3 changed files with 28 additions and 3 deletions

View File

@ -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');
}
}

View File

@ -1,3 +1,3 @@
cl_chill_main_homepage:
pattern: /hello/{name}
pattern: /hello
defaults: { _controller: CLChillMainBundle:Default:index }

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="fr">
<head>
{% stylesheets filter="compass" output="css/all.css"
"@CLChillMainBundle/Resources/assets/gumpy/sass/gumby.scss" %}
<link rel="stylesheet" href="{{ asset_url }}"/>
{% endstylesheets %}
</head>
<body>
<p> Hello ! </p>
<div class="medium primary btn">
<a href="#">Primary</a>
</div>
</body>
</html>