Questions tagged as 'twig'

0
answers

Use Angularjs and Twig in the same template

I'm trying to render a list of names using the ng-repeat directive of AngularJS. But I think there's a conflict between the Angular and Twig syntax. I tried to use the {% verbatim %}{{ angular_var }}{% endverbatim %} tag I found in...
asked by 04.06.2018 / 19:33
0
answers

The include in the twig does not work

I'm trying to use an include: {% include header.twig %} In the twig template engine, however it does not work and returns me an error: PHP Fatal error: Uncaught Twig_Error_Loader: Unable to find template "header.twig" (looked into: [path of...
asked by 31.01.2018 / 14:08
0
answers

Insertion of responsive background image in html.twig for Drupal 8

I'm trying to insert a responsive background image into a html.twig for Drupal 8 , but to no avail. I'm not finding a solution to this. Better yet if it were something practical like a put this line exactly in this location . The image sim...
asked by 20.10.2017 / 16:36
0
answers

How to use _ in values in Twig

Personal peercebi that when I pass some variable with _ in the name in Twig it causes the error causing me to have to remove the _ from the variable name to function. How do I hit this? Ex. no PHP $ non-TWIG date_ancient: anniversary_user...
asked by 05.03.2015 / 18:52
3
answers

Ajax problems in PHP MVC project

I'm having trouble using ajax with html. I have an html file that answers questions from a chat and I put the ajax below ajax. It redirects to the controller questions and the answer method. The request status is 200, but nothing happens. I h...
asked by 05.07.2018 / 02:28