diff options
author | vlakoff <vlakoff@gmail.com> | 2013-08-11 20:36:41 +0200 |
---|---|---|
committer | vlakoff <vlakoff@gmail.com> | 2013-08-11 20:38:16 +0200 |
commit | 441fd264267ac526730d06183bd3cfebfd26df01 (patch) | |
tree | a0cfb34851bf03221583e7b535db82898c077dbd /user_guide_src/source/libraries | |
parent | e23ba1373b347ecca61c371c96f0e33da443e915 (diff) |
Input class: change behavior of get_post() method, add post_get() method
followup to PR #2522
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r-- | user_guide_src/source/libraries/input.rst | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/user_guide_src/source/libraries/input.rst b/user_guide_src/source/libraries/input.rst index 177f5cb64..fb245d7cd 100644 --- a/user_guide_src/source/libraries/input.rst +++ b/user_guide_src/source/libraries/input.rst @@ -98,7 +98,7 @@ The method returns NULL if there are no items in the POST. $this->input->get() =================== -This method is identical to the post method, only it fetches get data +This method is identical to the POST method, only it fetches GET data :: $this->input->get('some_data', TRUE); @@ -116,18 +116,26 @@ The method returns NULL if there are no items in the GET. $this->input->get(); // returns all GET items without XSS filtering +$this->input->post_get() +======================== + +This method will search through both the POST and GET streams for +data, looking first in POST, and then in GET:: + + $this->input->post_get('some_data', TRUE); + $this->input->get_post() ======================== -This method will search through both the post and get streams for -data, looking first in post, and then in get:: +This method will search through both the POST and GET streams for +data, looking first in GET, and then in POST:: $this->input->get_post('some_data', TRUE); $this->input->cookie() ====================== -This method is identical to the post method, only it fetches cookie data +This method is identical to the POST method, only it fetches cookie data :: $this->input->cookie('some_cookie'); |