-
15.08.11 - Extending Twig in Symfony 2, add custom functions
5 commentsSometimes we need to add some custom functions to the view. In Symfony 1 we have the helpers, in Symfony 2 we must extend Twig in order to add it.At first, we have to connect our future Twig extension to the Dependency Injection Container in our Bundle. If we don't got any config file we have to [...]
