diff options
author | Andrey Andreev <narf@devilix.net> | 2015-02-26 18:04:52 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-02-26 18:04:52 +0100 |
commit | 23824b85d2e51f1f7930631bd84143ff9c078b50 (patch) | |
tree | 0b3c9b86ed80589fe01b6f9eb57e1ffa45eef374 /user_guide_src/source/libraries | |
parent | db20caad0c7a25152264033fbded3827ed5f72b1 (diff) | |
parent | 1e35792cc2d231cba11c2faefd71717ab67a46d2 (diff) |
Merge pull request #3604 from Ignasimg/patch-1
Add support for raw_input_stream
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r-- | user_guide_src/source/libraries/input.rst | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/user_guide_src/source/libraries/input.rst b/user_guide_src/source/libraries/input.rst index 967f69d13..274e49af4 100644 --- a/user_guide_src/source/libraries/input.rst +++ b/user_guide_src/source/libraries/input.rst @@ -91,8 +91,14 @@ the ``$_POST`` array, because it will always exist and you can try and access multiple variables without caring that you might only have one shot at all of the POST data. -CodeIgniter will take care of that for you, and you can access data -from the **php://input** stream at any time, just by calling the +CodeIgniter will take care of that for you, and you can read the data +from the **php://input** stream at any time, just by using the +``$raw_input_stream`` property:: + + $this->input->raw_input_stream; + +Additionally if the input stream is form-encoded like $_POST you can +access its values by calling the ``input_stream()`` method:: $this->input->input_stream('key'); @@ -114,6 +120,12 @@ Class Reference .. php:class:: CI_Input + .. attribute:: $raw_input_stream + + Read only property that will return php://input data as is. + + The property can be read multiple times. + .. php:method:: post([$index = NULL[, $xss_clean = NULL]]) :param mixed $index: POST parameter name |