Skip to content

Commit 6bc1703

Browse files
committed
minor #5262 Update Routes in the Getting Started documentation (BT643)
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
2 parents 804a9a9 + 7d52ec8 commit 6bc1703

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

quick_tour/the_big_picture.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ because that will be explained in the next section)::
156156
class DefaultController extends Controller
157157
{
158158
/**
159-
* @Route("/", name="homepage")
159+
* @Route("/app/example", name="homepage")
160160
*/
161161
public function indexAction()
162162
{
@@ -198,7 +198,7 @@ at the three lines of code above the ``indexAction`` method::
198198
class DefaultController extends Controller
199199
{
200200
/**
201-
* @Route("/", name="homepage")
201+
* @Route("/app/example", name="homepage")
202202
*/
203203
public function indexAction()
204204
{
@@ -219,7 +219,7 @@ the application homepage. The second value of ``@Route()`` (e.g.
219219
``name="homepage"``) is optional and sets the name of this route. For now
220220
this name is not needed, but later it'll be useful for linking pages.
221221

222-
Considering all this, the ``@Route("/", name="homepage")`` annotation creates
222+
Considering all this, the ``@Route("/app/example", name="homepage")`` annotation creates
223223
a new route called ``homepage`` which makes Symfony execute the ``index``
224224
action of the ``Default`` controller when the user browses the ``/`` path
225225
of the application.

0 commit comments

Comments
 (0)