From b1e3b3144931b680544f43639216aa63e2105f33 Mon Sep 17 00:00:00 2001 From: BT643 Date: Sat, 16 May 2015 19:11:31 +0100 Subject: [PATCH 1/2] Update Routes in the Getting Started documentation The @Routes in the "Actions and Controllers" and "Routes" sections of the Getting Started documentation are outdated it seems. I have just created a new project and it wasn't quite right. Of course you can still make sense of it but needs correcting. --- quick_tour/the_big_picture.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quick_tour/the_big_picture.rst b/quick_tour/the_big_picture.rst index 68649076bc7..a79b9d19bb1 100644 --- a/quick_tour/the_big_picture.rst +++ b/quick_tour/the_big_picture.rst @@ -156,7 +156,7 @@ because that will be explained in the next section):: class DefaultController extends Controller { /** - * @Route("/", name="homepage") + * @Route("/app/example", name="homepage") */ public function indexAction() { @@ -198,7 +198,7 @@ at the three lines of code above the ``indexAction`` method:: class DefaultController extends Controller { /** - * @Route("/", name="homepage") + * @Route("/app/example", name="homepage") */ public function indexAction() { From 7d52ec8b503a057d9d8c24ab297344af1389db12 Mon Sep 17 00:00:00 2001 From: BT643 Date: Sat, 16 May 2015 19:16:16 +0100 Subject: [PATCH 2/2] Update the_big_picture.rst --- quick_tour/the_big_picture.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quick_tour/the_big_picture.rst b/quick_tour/the_big_picture.rst index a79b9d19bb1..618bdecb481 100644 --- a/quick_tour/the_big_picture.rst +++ b/quick_tour/the_big_picture.rst @@ -219,7 +219,7 @@ the application homepage. The second value of ``@Route()`` (e.g. ``name="homepage"``) is optional and sets the name of this route. For now this name is not needed, but later it'll be useful for linking pages. -Considering all this, the ``@Route("/", name="homepage")`` annotation creates +Considering all this, the ``@Route("/app/example", name="homepage")`` annotation creates a new route called ``homepage`` which makes Symfony execute the ``index`` action of the ``Default`` controller when the user browses the ``/`` path of the application.