Skip to content

Commit 5238703

Browse files
Heaven31415OskarStark
authored andcommitted
Tell user about installing twig
1 parent bb0d48d commit 5238703

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

page_creation.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ If you're returning HTML from your controller, you'll probably want to render
197197
a template. Fortunately, Symfony comes with `Twig`_: a templating language that's
198198
easy, powerful and actually quite fun.
199199

200+
Install the twig package with:
201+
202+
.. code-block:: terminal
203+
204+
$ composer require twig
205+
200206
Make sure that ``LuckyController`` extends Symfony's base
201207
:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController` class:
202208

0 commit comments

Comments
 (0)