mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
add default layout
This commit is contained in:
parent
e68a1c8e8b
commit
000405709c
@ -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');
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
cl_chill_main_homepage:
|
||||
pattern: /hello/{name}
|
||||
pattern: /hello
|
||||
defaults: { _controller: CLChillMainBundle:Default:index }
|
||||
|
25
Resources/views/layout.html.twig
Normal file
25
Resources/views/layout.html.twig
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user