How Would You Make A Two Column Table With Twig?

前端 未结 3 1304
渐次进展
渐次进展 2021-02-05 07:30

I can\'t for the life of me figure out how to add a every OTHER iteration in a Twig loop.

For instance:

$numArray = a         


        
3条回答
  •  北海茫月
    2021-02-05 07:52

    For this specific case you can prepare your array before. So in a loop you will have in each row two variables. Try first example from this site http://twig.sensiolabs.org/doc/templates.html

提交回复
热议问题