Input Library - RoverWire/codeigniter-utilities GitHub Wiki

Official Codeigniter documentation for input library

Get variable value

Trigger: ciinputget

Results: $this->input->get($data, TRUE);

Get cookie value

Trigger: ciinputgck

Results: $this->input->cookie($cookie, TRUE);

Get / post variable value

Trigger: ciinputgp

Results: $this->input->get_post($data, TRUE);

Get request header

Trigger: ciinputgrh

Results: $this->input->get_request_header();

Ip address

Trigger: ciinputip

Results: $this->input->ip_address();

Is ajax request

Trigger: ciinputisajax

Results: $this->input->is_ajax_request();

Is cli request

Trigger: ciinputiscli

Results: $this->input->is_cli_request();

Post variable value

Trigger: ciinputpost

Results: $this->input->post($data, TRUE);

Request headers

Trigger: ciinputrh

Results: $this->input->request_headers();

Server variable value

Trigger: ciinputserv

Results: $this->input->server($data, TRUE);

Set Cookie

Trigger: ciinputsck

Results: $this->input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure);

Parameters are optional and can be changed.

User agent

Trigger: ciinputua

Results: $this->input->user_agent();

Valid ip

Trigger: ciinputvip

Results: $this->input->valid_ip('data');

⚠️ **GitHub.com Fallback** ⚠️