title | category |
---|---|
Git config |
Git |
Ne pas oublier : l'aide en ligne de commande.
{% block collection_widget %} | |
{% spaceless %} | |
<div class="collection"> | |
{% if prototype is defined %} | |
{% set attr = attr|merge({'data-prototype': block('collection_item_widget') }) %} | |
{% endif %} | |
<div {{ block('widget_container_attributes') }}> | |
{{ form_errors(form) }} | |
<ul> | |
{% for rows in form %} |
This is the how to for redirection implementation by roles after login or logout in Symfony2
AfterLoginRedirection.php
and AfterLogoutRedirection.php
to your bundle under the "Redirection" directoryservices.yml
file in your bundle and copy/paste the content of services.yml
security.yml
file...success_handler: redirect.after.login
in form_login:
sectionsuccess_handler: redirect.after.logout
in logout:
section