Top "Twig" questions

Twig is a modern, fast, flexible, and secure templating engine for PHP.

setting a placeholder attribute with translation in Symfony2 form input

I am using FOSUserBundle for managing my users. In order to register user, I reused the form of the bundle …

symfony twig symfony-forms fosuserbundle
Symfony2 / Twig dealing with getting URL query string values

I'm trying to manipulate the query string values in a URL. I can get the current URL or route either …

symfony twig
Compile Error: Cannot use isset() on the result of an expression

I'm getting this error in a app I am migrating from SF2.0.x to SF2.7: [1] Symfony\Component\Debug\Exception\FatalErrorException: …

php symfony twig symfony-2.7
Twig syntax highlighting sublime text

I want to know how can I have highlighting syntax for TWIG in Sublime Text. Actually when I open a …

sublimetext2 twig syntax-highlighting
Access an object method with Twig

I have a symfony controller returning this: return $this->render('MyBundle:Default:index.html.twig', array('menu' => $menu)); …

symfony twig
twig striptags and html special chars

I am using twig to render a view and I am using the striptags filter to remove html tags. However, …

html symfony twig special-characters strip
Conflict on Template of Twig and Vue.js

I'm doing a program using Slim 2 that uses Twig as my templating engine. so It uses the syntax {{ foo }} in …

javascript symfony twig vue.js
How do I fix "Add myBundle to the asseticBundle config" symfony2 exception?

When I am trying to use the TWIG {% javascript %} tag to link to my .js file it return me with …

php symfony twig
Symfony twig how to add class to a form row

I am building a project in Symfony 2.3 using Twig. I want to add a class to the form row block. …

symfony twig symfony-forms
How to render TWIG output to a variable for later use (symfony2)?

Instead of doing this rendering of each slide in my TWIG like this (see line 6): {# loop out the slides #} {% for …

php symfony twig render