diff options
author | Michiel Vugteveen <michiel@it-can.nl> | 2012-03-07 20:41:37 +0100 |
---|---|---|
committer | Michiel Vugteveen <michiel@it-can.nl> | 2012-03-07 20:41:37 +0100 |
commit | dc900df67972ed1c961fc3e4173db98047bdbd1b (patch) | |
tree | f72d514a614979babef53d26352c03a4dfeaba65 /user_guide_src/source/libraries/input.rst | |
parent | be0ca26c9006981eced5d938060ba5bad4145e3b (diff) |
removed is_method
Diffstat (limited to 'user_guide_src/source/libraries/input.rst')
-rw-r--r-- | user_guide_src/source/libraries/input.rst | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/user_guide_src/source/libraries/input.rst b/user_guide_src/source/libraries/input.rst index 96d1f07e1..c63c627db 100644 --- a/user_guide_src/source/libraries/input.rst +++ b/user_guide_src/source/libraries/input.rst @@ -301,25 +301,10 @@ see if PHP is being run on the command line. $this->input->method(); ===================================== -Returns the $_SERVER['REQUEST_METHOD'] in lowercase. +Returns the $_SERVER['REQUEST_METHOD'], optional set uppercase or lowercase (standard lowercase). :: - $this->input->method(); - -$this->input->is_method($method); -===================================== - -Returns TRUE if given method equals $_SERVER['REQUEST_METHOD'], otherwise returns FALSE. - -:: - - if ( ! $this->input->is_method('post')) - { - echo 'This is NOT a POST request'; - } - else - { - echo 'This is a POST request'; - } - + echo $this->input->method(TRUE); // Outputs: POST + echo $this->input->method(FALSE); // Outputs: post + echo $this->input->method(); // Outputs: post |