Create a file named
module.yml in project/
config or app/
config dir with the following content.
all: view_class: sfTwig partial_view_class: sfTwig
This will enable the sfTwigView class to be used when rendering templates.
Usage is simple, this plugin replaces sfPHPView and therefor the template file extension have changed into .html. But because this is not exactly the same as sfPHPView and Twig dosent allow function calling from within the templates none of the normal helpers will work until they have been converted to Twig Extensions.