Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/04/2014, 01:42
Avatar de Eleazan
Eleazan
 
Fecha de Ingreso: abril-2008
Ubicación: Ibiza
Mensajes: 1.879
Antigüedad: 16 años
Puntos: 326
Respuesta: Funcion in_array en plantillas twig

Puedes probar con "in":

http://twig.sensiolabs.org/doc/templ...nment-operator

sería algo así:

Código HTML:
Ver original
  1. {% if item in algunArray %}
__________________
>> Eleazan's Source
>> @Eleazan