From 081ac9d44dab334c748c0f7e763c97d55fb9bdf1 Mon Sep 17 00:00:00 2001 From: Greg Aker Date: Mon, 22 Nov 2010 14:42:53 -0600 Subject: Adding is_ajax_request() method to CI_Input --- user_guide/libraries/input.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'user_guide/libraries') 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
$headers = $this->input->request_headers();

$this->input->get_request_header();

-

Returns a single +

Returns a single member of the request headers array.

$this->input->get_request_header('some-header', TRUE); + +

$this->input->is_ajax_request()

+

Checks to see if the HTTP_X_REQUESTED_WITH server header has been set, and returns a boolean response.

+ +$this->input->is_ajax_request() + + -- cgit v1.2.3-24-g4f1b