You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c00d630
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/book/v1/chapter-3.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ class RoutesDelegator
74
74
75
75
## Handling the Request
76
76
77
-
Now that the route is exists, we need to create the class that will handle our request.
77
+
Now that the route exists, we need to create the class that will handle our request.
78
78
Create a new directory `src/Book/src/Handler` and create the file `GetBooksHandler.php`.
79
79
80
80
```php
@@ -117,9 +117,9 @@ class GetBooksHandler implements RequestHandlerInterface
117
117
The custom functions that we have created in the `BookRepository.php` retrieve our desired values and pass it to the `books` HTML template that is being rendered.
118
118
We will crate the HTML file in the next part of this chapter.
119
119
120
-
## HTML Template for Book Listing
120
+
## Twig Template for Book Listing
121
121
122
-
The `books`HTML template is currently missing, we now need to create it under the following path: `src/Book/src/templates/page/books.html.twig`.
122
+
The `books` template is currently missing, we now need to create it under the following path: `src/Book/src/templates/page/books.html.twig`.
123
123
124
124
```html
125
125
{% extends '@layout/default.html.twig' %}
@@ -172,8 +172,7 @@ The `books` HTML template is currently missing, we now need to create it under t
172
172
Now that our route, handler, repository methods and view are ready, we need to **register them so the application can use them**.
173
173
In `src/Book/src/ConfigProvider.php` we need to add the following changes:
@@ -304,7 +303,7 @@ There are two options in this case:
304
303
- Use Doctrine Fixtures
305
304
- Add entries manually from the Database Client.
306
305
307
-
**We recommend using fixtures**, but if you choose the alternative approach, feel free to skip directly to the **final section** of this chapter.
306
+
**We recommend using fixtures**, but if you choose the alternative approach, feel free to skip directly to the [final](#listing-result) section of this chapter.
0 commit comments