Skip to content

Commit e3f1920

Browse files
Remove reference to PHP Templates in translation
1 parent 249434e commit e3f1920

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

translation.rst

-10
Original file line numberDiff line numberDiff line change
@@ -437,16 +437,6 @@ The ``trans`` filter can be used to translate *variable texts* and complex expre
437437
Note that this only influences the current template, not any "included"
438438
template (in order to avoid side effects).
439439

440-
PHP Templates
441-
~~~~~~~~~~~~~
442-
443-
The translator service is accessible in PHP templates through the
444-
``translator`` helper:
445-
446-
.. code-block:: html+php
447-
448-
<?= $view['translator']->trans('Symfony is great') ?>
449-
450440
Forcing the Translator Locale
451441
-----------------------------
452442

0 commit comments

Comments
 (0)