summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries/input.html
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2010-11-22 21:42:53 +0100
committerGreg Aker <greg.aker@ellislab.com>2010-11-22 21:42:53 +0100
commit081ac9d44dab334c748c0f7e763c97d55fb9bdf1 (patch)
tree3aad0c9c083319723518daf753b44e35afeddb5f /user_guide/libraries/input.html
parent3a563987be22b542a26c05b21a5691c9dd4ec7be (diff)
Adding is_ajax_request() method to CI_Input
Diffstat (limited to 'user_guide/libraries/input.html')
-rw-r--r--user_guide/libraries/input.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/user_guide/libraries/input.html b/user_guide/libraries/input.html
index 704421331..d838cf020 100644
--- a/user_guide/libraries/input.html
+++ b/user_guide/libraries/input.html
@@ -239,10 +239,17 @@ else<br />
<code>$headers = $this->input->request_headers();</code>
<h2>$this->input->get_request_header();</h2>
-<p>Returns a single
+<p>Returns a single member of the request headers array.</p>
<code>$this->input->get_request_header('some-header', TRUE);</code>
+
+<h2>$this->input->is_ajax_request()</h2>
+<p>Checks to see if the <var>HTTP_X_REQUESTED_WITH</var> server header has been set, and returns a boolean response.</p>
+
+<code>$this->input->is_ajax_request()</code>
+
+
</div>
<!-- END CONTENT -->