Answer the question
In order to leave comments, you need to log in
How to connect Twig to Yii2 Advanced?
I installed the Advanced version of Yii2, I'm trying to connect the twig to it according to this instruction https://github.com/yiisoft/yii2-twig/blob/master/d...
The main layout changed. I tried to put the code from the instructions in \frontend\config\main.php and in the same place in main-local, I tried it somewhere else. Everywhere on the Internet it is written that it is necessary in web.php, but as I understand it, this is for basic Yii2. As a result, Twig simply does not work, on the page all Twig tags are displayed simply as text.
It already seems that this is not applicable to Advanced.
Tell me, please, how to do it right?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question