How to Use PHP instead of Twig for Templates
Warning: You are browsing the documentation for Symfony 6.1, which is no longer maintained.
Read the updated version of this page for Symfony 7.2 (the current stable version).
How to Use PHP instead of Twig for Templates
Caution
Starting from Symfony 5.0, PHP templates are no longer supported. Use Twig instead to create your templates.
This work, including the code samples, is licensed under a
Creative Commons BY-SA 3.0 license.