Twig-using or not using?


everyone everywhere to say don’t mix HTML with PHP. In Symfony twig is built in framework and Yii can download through composer. Writing view in clean PHP is bad practice? better to use twig?


It is your choice…

I suggest you to read:


I am using Jade as a template engine, but I am not strictly avoiding PHP in the views (templates) - using a template engine helps me to keep the amount of pasta to an absolute minimum.