简体   繁体   中英

How to disable template feature in Symfony2

I'm looking forward to use Symfony2. But i dont want to use a template engine. How can I disable the default templating engine "twig" and use native php?

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

This page explains how to use plain php instead of twig. Also to remove twig capability from your app you can also remove it from the config file

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM