cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Twig in Magento 2 ?

How to use Twig in Magento 2 ?

I've followed the steps highlighted in this tutorial:   Tuto webkul

 

Basically, install twig package v2.2.0 (easy), set template engine in my di.xml file (easy) then use webkul's Twig php class (easy but...).

Problem: as of version 2, Twig no longer uses the Twig_Autoloader class, and now relies on composer for that. But I have no idea how to make it work correctly so far...how to implement a correct setup, in the details...