Skip to content

Commit 78a11fd

Browse files
5ar5kovicjaviereguiluz
authored andcommitted
Update page_creation.rst
1 parent 0ed1575 commit 78a11fd

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)