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.