-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Update Routes in the Getting Started documentation #5262
Conversation
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.
Thanks for the perfect PR, @BT643. Congratz with your first Symfony contribution! :) |
This PR was merged into the 2.3 branch. Discussion ---------- 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. Commits ------- 7d52ec8 Update the_big_picture.rst b1e3b31 Update Routes in the Getting Started documentation
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not consistent anymore with the route definition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see 4127197
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.