I just started working with YII. I really want to integrate YII with Twig. I tried to use this extension under latest version of YII. But my question si how use layout within a view context using YII/Twig.
I just started working with YII. I really want to integrate YII with Twig. I tried to use this extension under latest version of YII. But my question si how use layout within a view context using YII/Twig.
You sould place the layout in view/layouts and the content is defined in each view.
I am not a Twig expert, I can just suggest you where are all the tiles.
P.S: welcome to the forum
Thank you very much for the reply. I tried that however I was not able to extend base template just like they do in Twig. I was given error. Any idea how to extend base template via Twig.
Can you explain a bit better what is a twig template and what is the error you got?