Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/11/2012, 09:43
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Login view helper en Symfony 2

Si solamente estas comprobando si el usuario esta o no logeado basta con hacer un if directamente en la vista

foo.html.twig
Código TWIG:
Ver original
  1. {% if app.user %}
  2.     ...
  3. {% else %}
  4.     ...
  5. {% endif %}
__________________
http://es.phptherightway.com/
thats us riders :)