TemplatingEdit this page
Warning: You are browsing the documentation for Symfony 2.1, 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 PHP instead of Twig for Templates
- How to write a custom Twig Extension
- How to render a Template without a custom Controller
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.