How to disable the template function in Symfony2

I look forward to using Symfony2. But I do not want to use the template engine. How to disable the default "twig" template engine and use native php?

+5
source share
1 answer

I would look at http://symfony.com/doc/current/cookbook/templating/PHP.html

This page explains how to use simple php instead of twigs. Also, to remove the twing capabilities from your application, you can also remove it from the configuration file.

framework:
    # ...
    templating:    { engines: ['php'] }
+12
source

All Articles