diff --git a/quick_tour/the_big_picture.rst b/quick_tour/the_big_picture.rst index 68649076bc7..618bdecb481 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() { @@ -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.