File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ Create your First Page in Symfony
10
10
Creating a new page - whether it's an HTML page or a JSON endpoint - is a
11
11
simple two-step process:
12
12
13
- #. *Create a route *: A route is the URL (e.g. ``/about ``) to your page and
13
+ #. ** Create a route * *: A route is the URL (e.g. ``/about ``) to your page and
14
14
points to a controller;
15
15
16
- #. *Create a controller *: A controller is the PHP function you write that
16
+ #. ** Create a controller * *: A controller is the PHP function you write that
17
17
builds the page. You take the incoming request information and use it to
18
18
create a Symfony ``Response `` object, which can hold HTML content, a JSON
19
19
string or even a binary file like an image or PDF.
@@ -78,7 +78,7 @@ to creating a page?
78
78
defines the URL pattern for this page. You'll learn more about :doc: `routing </routing >`
79
79
in its own section, including how to make *variable * URLs;
80
80
81
- #. *Create a controller *: The method below the route - ``numberAction `` - is called
81
+ #. *Create a controller *: The method below the route - ``numberAction() `` - is called
82
82
the *controller *: this is a function where *you * build the page and ultimately
83
83
return a ``Response `` object. You'll learn more about :doc: `controllers </controllers >`
84
84
in their own section, including how to return JSON responses;
You can’t perform that action at this time.
0 commit comments