Skip to content

Commit 46a7d23

Browse files
committed
minor #16152 Update page_creation.rst (5ar5kovic)
This PR was submitted for the 5.4 branch but it was merged into the 4.4 branch instead. Discussion ---------- Update page_creation.rst synchronized with example above Commits ------- 78a11fd Update page_creation.rst
2 parents 0ed1575 + 78a11fd commit 46a7d23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

page_creation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ If you see a lucky number being printed back to you, congratulations! But before
8181
you run off to play the lottery, check out how this works. Remember the two steps
8282
to creating a page?
8383

84+
#. *Create a controller and a method*: This is a function where *you* build the page and ultimately
85+
return a ``Response`` object. You'll learn more about :doc:`controllers </controller>`
86+
in their own section, including how to return JSON responses.
87+
8488
#. *Create a route*: In ``config/routes.yaml``, the route defines the URL to your
8589
page (``path``) and what ``controller`` to call. You'll learn more about :doc:`routing </routing>`
8690
in its own section, including how to make *variable* URLs;
8791

88-
#. *Create a controller*: This is a function where *you* build the page and ultimately
89-
return a ``Response`` object. You'll learn more about :doc:`controllers </controller>`
90-
in their own section, including how to return JSON responses.
91-
9292
.. _annotation-routes:
9393

9494
Annotation Routes

0 commit comments

Comments
 (0)