Skip to content

Commit 71a1558

Browse files
committed
docs: add sub section titles
1 parent 99ef79b commit 71a1558

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎user_guide_src/source/incoming/incomingrequest.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ With CodeIgniter's built-in methods you can simply do this:
9999
Getting Data
100100
============
101101

102+
getVar()
103+
--------
104+
102105
The ``getVar()`` method will pull from ``$_REQUEST``, so will return any data from ``$_GET``, ``$POST``, or ``$_COOKIE`` (depending on php.ini `request-order <https://www.php.net/manual/en/ini.core.php#ini.request-order>`_).
103106

104107
.. warning:: If you want to validate POST data only, don't use ``getVar()``.
@@ -109,6 +112,9 @@ The ``getVar()`` method will pull from ``$_REQUEST``, so will return any data fr
109112
.. note:: If the incoming request has a ``Content-Type`` header set to ``application/json``,
110113
the ``getVar()`` method returns the JSON data instead of ``$_REQUEST`` data.
111114

115+
get*()
116+
------
117+
112118
While this
113119
is convenient, you will often need to use a more specific method, like:
114120

0 commit comments

Comments
 (0)