Skip to content

Commit d856b63

Browse files
committed
minor #12616 Tell user about installing twig (Heaven31415)
This PR was submitted for the master branch but it was merged into the 4.3 branch instead (closes #12616). Discussion ---------- Tell user about installing twig I tried to follow [this subsection of tutorial](https://symfony.com/doc/current/page_creation.html#rendering-a-template) and I noticed that I'm asked to create a file in a missing **templates** directory. I noticed that I'm missing this directory, because Twig isn't installed, so I simply installed it using composer which fixed the problem. I changed the docs so people would know that they need to install Twig before moving on. Commits ------- 5238703 Tell user about installing twig
2 parents bb0d48d + 5238703 commit d856b63

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)