Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable template feature in Symfony2

Tags:

php

symfony

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?

like image 292
mosch Avatar asked Mar 23 '12 14:03

mosch


1 Answers

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'] }
like image 137
Shattuck Avatar answered Nov 05 '22 01:11

Shattuck