Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/04/2013, 16:22
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 4 meses
Puntos: 845
Respuesta: Comprobar autenticacion desde plantilla

Algo asi:

Código TWIG:
Ver original
  1. {% if app.user %}
  2.     # user is logged in
  3. {% else %}
  4.     # user is not logged in
  5. {% endif %}

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)