diff options
author | Greg Aker <greg.aker@ellislab.com> | 2010-11-15 23:22:12 +0100 |
---|---|---|
committer | Greg Aker <greg.aker@ellislab.com> | 2010-11-15 23:22:12 +0100 |
commit | ec2f57133750caa5f5903e529a6ae776aebc4431 (patch) | |
tree | d2585b30e865fab16b1790b6006b384ebaca7868 /user_guide | |
parent | 9cc3d5078f0dc739ffb231edc5ad8021457fb094 (diff) |
Adding request_headers() and get_request_header() methods to the input class. The request_headers() method is helpful in non-apache environments where apache_request_headers() isn't going to exist.
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/changelog.html | 1 | ||||
-rw-r--r-- | user_guide/libraries/input.html | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 56f750be8..d5bf1b77d 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -108,6 +108,7 @@ Hg Tag: </p> Please see the <a href="./installation/upgrade_200.html">upgrade instructions</a> for details.</li> <li>Altered Form_Validation library to allow for method chaining on <kbd>set_rules()</kbd>, <kbd>set_message()</kbd> and <kbd>set_error_delimiters()</kbd> functions.</li> <li>Altered Email Library to allow for method chaining.</li> + <li>Added <kbd>request_headers()</kbd> and <kbd>get_request_header</kbd> to the input class.</li> </ul> </li> <li>Database diff --git a/user_guide/libraries/input.html b/user_guide/libraries/input.html index 4c12fd7b0..704421331 100644 --- a/user_guide/libraries/input.html +++ b/user_guide/libraries/input.html @@ -233,7 +233,15 @@ else<br /> <code>echo $this->input->user_agent();</code> +<h2>$this->input->request_headers()</h2> +<p>Useful if running in a non-Apache environment where <a href="http://php.net/apache_request_headers">apache_request_headers()</a> will not be supported. Returns an array of headers.</p> +<code>$headers = $this->input->request_headers();</code> + +<h2>$this->input->get_request_header();</h2> +<p>Returns a single + +<code>$this->input->get_request_header('some-header', TRUE);</code> </div> <!-- END CONTENT --> |