Bonjour,

je veux hériter mon layout mais il m'affiche un erreur

layput.html.twig
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<html>
    <head>
        <script src="{{ asset('http://code.jquery.com/jquery-latest.min.js') }}" type="text/javascript"></script>
 {% block stylesheets %}
<link rel="stylesheet" href="{{ asset('bundles/myappavv/css/jquery-ui-1.8.20.custom.css') }}" type="text/css" media="all" />
{% endblock %}
{% block js %}
        <script type="text/javascript" src="{{ asset('bundles/myappavv/js/jquery-1.7.2.min.js')}}"></script>
		<script type="text/javascript" src="{{ asset('bundles/myappavv/js/jquery-ui-1.8.20.custom.min.js')}}"></script>
        <script type="text/javascript">
			$(function(){
 
				// Accordion
				$("#accordion").accordion({ header: "h3" });
 
				// Tabs
				$('#tabs').tabs(
						);
			//hover states on the static widgets				
			});
		</script>
 
{% endblock %} 
    </head>
    <body>               
            <div id="tabs">
              <ul>
                  <li><a href="{{ path('MyAppAvvBundle_list') }}">Accueil</a></li>
                  <li><a href="{{ path('MyAppAvvBundle_ajout') }}">Nouveau job</a></li>
              </ul>
            <div id="MyAppAvvBundle_list"></div>
			<div id="tabs-2">Phas.</div>      
            </div>
 
            {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
              {# L'utilisateur est connecté ! #}
              <a href="{{ path('fos_user_security_logout') }}">Déconnexion</a>
 
              {# L'utilisateur est-il admin ? #}
              {% if is_granted('ROLE_ADMIN') %}
                  {# L'utilisateur est admin ! #}
                  {#<a href="{{ path('admin') }}">Administration</a>#}
              {% endif %}
              {% else %}
                  {# L'utilisateur n'est pas connecté ! #}
                  <a href="{{ path('fos_user_security_login') }}">Connexion</a>
                  <a href="{{ path('fos_user_registration_register') }}">Inscription</a>
            {% endif %}           
 
            <div id="content">
                <h1>{{ block('title') }}</h1>
                {% block content %}
                {% endblock %}
            </div>
            <div id="footer">
                <p>Tous droits réservés © 2012</p>
            </div>
        </div>
    </body>
</html>
page.html.twig
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% extends 'MyAppAvvBundle::layout.html.twig' %} 
<table>
<tr>
<td bgcolor="#87CEFA">Client</td>
<td bgcolor="#87CEFA">Projet</td>
<td bgcolor="#87CEFA">Commercial</td>
<td bgcolor="#87CEFA">Budget</td>
<td bgcolor="#87CEFA">Technologies</td>
<td bgcolor="#87CEFA">Date reponse</td>
<td bgcolor="#87CEFA">Statut</td>
<td></td>
</tr>
{% for a in Avv %}
    <tr>
	<td>{{ a.client }}</td>
	<td><a href="{{ path('MyAppAvvBundle_organisation',{'id':a.id}) }}">{{ a.projet }}</a></td>
	<td>{{ a.commercial }}</td>
	<td>{{ a.budget }}</td>
	<td>{{ a.technologies }}</td>
	<td>{{ a.dateReponse | date("Y-m-d") }}</td>
	<td>{{ a.statut }}</td>
	<td><a href="{{ path('MyAppAvvBundle_modifier',{'id': a.id }) }}">Modifier</a></td>
	</tr>
 
 
{% endfor %}
 
</table>
erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
A template that extends another one cannot have a body in MyAppAvvBundle:Default:list.html.twig at line 1.
Merci d'avance