@@ -34,7 +34,7 @@ Creating a Page: Route and Controller
3434
3535Suppose you want to create a page - ``/lucky/number `` - that generates a
3636lucky (well, random) number and prints it. To do that, create a class and
37- a method inside of it that will be executed when someone goes to ``/lucky/random ``::
37+ a method inside of it that will be executed when someone goes to ``/lucky/number ``::
3838
3939 // src/AppBundle/Controller/LuckyController.php
4040 namespace AppBundle\Controller;
@@ -60,8 +60,6 @@ a method inside of it that will be executed when someone goes to ``/lucky/random
6060
6161Before diving into this, test it out!
6262
63- .. code-block :: text
64-
6563 http://localhost:8000/app_dev.php/lucky/number
6664
6765.. tip ::
@@ -129,8 +127,6 @@ Just add a second method to ``LuckyController``::
129127
130128Try this out in your browser:
131129
132- .. code-block :: text
133-
134130 http://localhost:8000/app_dev.php/api/lucky/number
135131
136132You can even shorten this with the handy :class: `Symfony\\ Component\\ HttpFoundation\\ JsonResponse `::
@@ -252,8 +248,6 @@ The best part is that you can access this value and use it in your controller::
252248
253249Try it by going to ``/lucky/number/XX `` - replacing XX with *any * number:
254250
255- .. code-block :: text
256-
257251 http://localhost:8000/app_dev.php/lucky/number/7
258252
259253You should see *7 * lucky numbers printed out! You can get the value of any
@@ -411,8 +405,6 @@ to put the content into the middle of the ``base.html.twig`` layout.
411405
412406Refresh to see your template in action!
413407
414- .. code-block :: text
415-
416408 http://localhost:8000/app_dev.php/lucky/number/9
417409
418410If you view the source code, you now have a basic HTML structure thanks to
0 commit comments