10000 Page Creation Small Changes by ahinkle · Pull Request #10177 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Page Creation Small Changes #10177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Twig is included with Symfony. No need to have the user run composer
  • Loading branch information
ahinkle committed Aug 11, 2018
commit 6dbc3b038195a58a5ee416fb3d2639c623fcf917
8 changes: 1 addition & 7 deletions page_creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,7 @@ If you're returning HTML from your controller, you'll probably want to render
a template. Fortunately, Symfony comes with `Twig`_: a templating language that's
easy, powerful and actually quite fun.

First, install Twig:

.. code-block:: terminal

$ composer require symfony/twig-bundle

Second, make sure that ``LuckyController`` extends Symfony's base
Make sure that ``LuckyController`` extends Symfony's base
:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController` class:

.. code-block:: diff
Expand Down
0