Twig is a modern, fast, flexible, and secure templating engine for PHP.
Is there a shorter syntax in Twig to output a conditional string of text? <h1>{% if not info.…
php twigI have a loop withing a .twig file that outputs elements. I need to increment a value withing each element. …
twigDoes anyone know how (of if it's even possible!) to do this in Twig? I can't see anything in the …
php twigI trying to output an array from the database to the screen. In my entity: /** * @ORM\Column(type="array", nullable=…
arrays symfony doctrine-orm twig longtextI store img in Acme/DemoBundle/Resources/public/img/weather_icon/blizzard.gif I want to put this img in …
symfony twig asseticI want to do something like this: {% set c=a+b %} Where a and b are strings. How can I …
twigI have a few class constants in my entity class, e.g.: class Entity { const TYPE_PERSON = 0; const TYPE_COMPANY = 1; } …
php templates twigIs it possible to check if given variable is string in Twig ? Expected solution: messages.en.yml: hello: stranger: Hello …
twigI'm upgrading my project from Symfony 2.0.22 to 2.2.0 and review somes changes, but i'm blocked on this : I would like to …
symfony twig symfony-2.2I have a multidimensional array where some objects exist and others don't. I keep getting a Method "code" for object "…
symfony twig