This is my code
:
<form action="{{ path('fos_user_profile_edit') }}" {{ form_enctype(form) }} method="POST" class="fos_user_profile_edit">
<div class="edittext_registre1">{{ form_label(form.username) }}</div>
<div class="editbox_registre1">{{ form_widget(form.username) }}</div>
<br/><br/>
<div class="edittext_registre2">{{ form_label(form.email) }}</div>
<div class="editbox_registre2">{{ form_widget(form.email) }}</div>
<br/><br/>
<div class="edittext_registre3">{{ form_label(form.current_password) }}</div>
<div class="editbox_registre3">{{ form_widget(form.current_password) }}</div>
<br/><br/>
<div>
<input type="submit" value="{{ 'profile.edit.submit'| trans }}" />
</div>
</form>
When I click submit button, my profil have no change :(
but when I change my code by this code:
<form action="{{ path('fos_user_profile_edit') }}" {{ form_enctype(form) }} method="POST" class="fos_user_profile_edit">
{% include "FOSUserBundle:Profile:edit_content.html.twig" %}
<div>
<input type="submit" value="{{ 'profile.edit.submit'| trans }}" />
</div>
</form>
Why ? What should I do?
Thank you so much.