Top "Twig-extension" questions

Twig extension is about custom type defined about Twig template PHP engine.

How to install the Intl extension for Twig

The Intl extension is an extension for Twig that adds the localizeddate, localizednumber and localizedcurrency filters. How can I install …

php twig intl twig-extension
Using an environment variable (from `.env` file) in custom Twig function in Symfony 4

How can I use an environment variable from the .env file in a custom Twig function (\Twig_SimpleFunction) in Symfony 4?

twig environment-variables symfony4 twig-extension
The filter "truncate" (of twig) does not exist in a view of a vendor bundle

I am trying to use the bundle JMS Translation but I have this error. It is I guess because my …

symfony twig bundle composer-php twig-extension
Timber (Twig) how to call wordpress functions

In Timber is this function {{post}} where you get things like {{post.post_title}} but there are other functions in …

php wordpress twig timber twig-extension
How to get days difference in twig

how to get days diffrence from current day. tweetedAt: "2015-02-22 09:56:42". twig {% for key,value in data.about %} {% set tweets_…

php symfony twig twig-extension
Passing an array to an include in twig

Seems like the argument is not passed properly ... {% set items = { item: { 'id': '1', 'brand': 'client1', 'description': 'solutions.client1.…

php twig twig-extension
Twig : url_decode

I encoded an url parameter with the twig filter url_encode. // app.request.query.get("date") output 01/04/2016 href="{{ path('page', {…

php symfony twig twig-extension
Merge key and value into an array in Twig file

I want to add key and value into array in twig file. But I am facing following issue "Twig_Error_…

php symfony twig-extension