TemplatingEdit this page
Warning: You are browsing the documentation for Symfony 2.2, which is no longer maintained.
Read the updated version of this page for Symfony 6.2 (the current stable version).
- How to Inject Variables into all Templates (i.e. Global Variables)
- How to use and Register namespaced Twig Paths
- How to use PHP instead of Twig for Templates
- How to write a custom Twig Extension
- How to render a Template without a custom Controller