Skip to content
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

Merged
merged 2 commits into from
May 16, 2015
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions quick_tour/the_big_picture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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()
{
Expand All @@ -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
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see 4127197

of the application.
Expand Down