8000 Page creation article by tiwiex · Pull Request #8394 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Page creation article #8394

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

Merged
merged 3 commits into from
Oct 13, 2017
Merged
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
Rewords
  • Loading branch information
javiereguiluz authored Oct 4, 2017
commit d2ff7d682167f94b7e512d71a8e28c5f94f61f86
8 changes: 4 additions & 4 deletions page_creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ random) number and prints it. To do that, create a "Controller class" and a
class LuckyController
{
/**
@Route("/lucky/number")
* @Route("/lucky/number")
*/
public function numberAction()
{
Expand Down Expand Up @@ -94,9 +94,9 @@ 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, include the Symfony controller class as shown in line 5 below then,
make sure that ``LuckyController`` extends Symfony's base
:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` class::
First, import the Symfony's base
:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` class as shown
in line 5 below. Then, make sure that ``LuckyController`` extends from it::

:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` class::

Expand Down
0