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
Copy file name to clipboardExpand all lines: user_guide_src/source/concepts/http.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ is an object-oriented representation of the HTTP request. It provides everything
74
74
75
75
$request = service('request');
76
76
77
-
// the URI being requested (i.e. /about)
77
+
// the URI being requested (i.e., /about)
78
78
$request->uri->getPath();
79
79
80
80
// Retrieve $_GET and $_POST variables
@@ -100,7 +100,7 @@ is an object-oriented representation of the HTTP request. It provides everything
100
100
The request class does a lot of work in the background for you, that you never need to worry about.
101
101
The `isAJAX()` and `isSecure()` methods check several different methods to determine the correct answer.
102
102
103
-
.. note:: The ``isAJAX()`` method depends on the ``X-Requested-With`` header, which in some cases is not sent by default in XHR requests via JavaScript (i.e. fetch). See the :doc:`AJAX Requests </general/ajax>` section on how to avoid this problem.
103
+
.. note:: The ``isAJAX()`` method depends on the ``X-Requested-With`` header, which in some cases is not sent by default in XHR requests via JavaScript (i.e., fetch). See the :doc:`AJAX Requests </general/ajax>` section on how to avoid this problem.
104
104
105
105
CodeIgniter also provides a :doc:`Response class </outgoing/response>` that is an object-oriented representation
106
106
of the HTTP response. This gives you an easy and powerful way to construct your response to the client::
Copy file name to clipboardExpand all lines: user_guide_src/source/dbmgmt/migration.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Migration file names
27
27
28
28
Each Migration is run in numeric order forward or backwards depending on the
29
29
method taken. Each migration is numbered using the timestamp when the migration
30
-
was created, in **YYYYMMDDHHIISS** format (e.g. **20121031100537**). This
30
+
was created, in **YYYYMMDDHHIISS** format (e.g., **20121031100537**). This
31
31
helps prevent numbering conflicts when working in a team environment.
32
32
33
33
Prefix your migration files with the migration number followed by an underscore
@@ -306,7 +306,7 @@ Class Reference
306
306
307
307
.. php:method:: regress($batch, $group)
308
308
309
-
:param mixed $batch: previous batch to migrate down to; 1+ specifies the batch, 0 reverts all, negative refers to the relative batch (e.g. -3 means "three batches back")
309
+
:param mixed $batch: previous batch to migrate down to; 1+ specifies the batch, 0 reverts all, negative refers to the relative batch (e.g., -3 means "three batches back")
310
310
:param mixed $group: database group name, if null default database group will be used.
311
311
:returns: ``true`` on success, ``false`` on failure or no migrations are found
Copy file name to clipboardExpand all lines: user_guide_src/source/general/ajax.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
AJAX Requests
3
3
##############
4
4
5
-
The ``IncomingRequest::isAJAX()`` method uses the ``X-Requested-With`` header to define whether the request is XHR or normal. However, the most recent JavaScript implementations (i.e. fetch) no longer send this header along with the request, thus the use of ``IncomingRequest::isAJAX()`` becomes less reliable, because without this header it is not possible to define whether the request is or not XHR.
5
+
The ``IncomingRequest::isAJAX()`` method uses the ``X-Requested-With`` header to define whether the request is XHR or normal. However, the most recent JavaScript implementations (i.e., fetch) no longer send this header along with the request, thus the use of ``IncomingRequest::isAJAX()`` becomes less reliable, because without this header it is not possible to define whether the request is or not XHR.
6
6
7
7
To get around this problem, the most efficient solution (so far) is to manually define the request header, forcing the information to be sent to the server, which will then be able to identify that the request is XHR.
0 commit comments