Bonjour, depuis peu de temps je rencontre un problème pour afficher un formulaire avec le bundle FOSUSERBUNDLE.

Effectivement quand je veu afficher mon formulaire de la sorte:

register.html.twig
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
{% extends 'frontendCommandeBundle::layout.html.twig' %}
 
{% block content %}
{% block fos_user_content %}
{% include "FOSUserBundle:Registration:register_content.html.twig" %}
{% endblock fos_user_content %}
 
{% endblock %}
register_content.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

<div class="inscriptionFormulaire">
        <h1>Nouveau Client</h1>
<form id="registerForm" action="{{ path('fos_user_registration_register') }}" {{ form_enctype(form) }} method="POST" class="fos_user_registration_register">
    {{ form_row(form.nom) }}
    {{ form_row(form.prenom) }}
    {{ form_row(form.username) }}
    {{ form_row(form.email) }}
    {{ form_row(form.plainPassword) }}
<hr />

{{ form_errors(form) }}
{{ form_rest(form) }}


{% include 'EcommerceUtilityBundle:Default:input_button.html.twig'
 with {'value':  'registration.submit'|trans({}, 'FOSUserBundle') } %}

</form>
</div>
Tout fonctionnais à merveille pendant longtemps et du jour au lendemains l'erreur suivante:
An exception has been thrown during the rendering of a template ("Unable to render the form as none of the following blocks exist: "_fos_user_registration_form_", "user_registration_", "form_".") in FOSUserBundle:Registration:register_content.html.twig at line 5.
Une idee les amis.
Pour information je suis le principe de l'héritage du bundle FOSUSERBUNDLE, et redéfinie donc certaine classe et vue