Skip to content

Commit 07af7a4

Browse files
kenjismichalsn
andauthored
docs: improve explanation
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent bcfd754 commit 07af7a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

user_guide_src/source/tutorial/create_news_items.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Next, we check if we deal with the **POST** request with the
9191
:doc:`IncomingRequest <../incoming/incomingrequest>` object ``$this->request``.
9292
It is set in the controller by the framework.
9393
The :ref:`IncomingRequest::is() <incomingrequest-is>` method checks the type of the request.
94-
If the request is not a POST request, that is it is a GET request,
94+
Since the route for **create()** endpoint handles both: **GET** and **POST** requests we can safely assume that if the request is not POST then it is a GET type.
9595
the form is loaded and returned to display.
9696

9797
Then, we get the necessary items from the POST data by the user and set them in the ``$post`` variable.

0 commit comments

Comments
 (0)