Input
extends CI_Input
in package
AbstractYes
Extended input handling class.
Provides additional input methods for PUT and DELETE requests beyond CodeIgniter's built-in input handling.
Usage:
// In controller
$name = $this->input->put('name');
$id = $this->input->delete('id');
Table of Contents
Methods
- delete() : mixed
- Fetch an item from DELETE request data.
- put() : mixed
- Fetch an item from PUT request data.
Methods
delete()
Fetch an item from DELETE request data.
public
delete([mixed|null $index = null ][, bool|null $xssClean = null ]) : mixed
Parameters
- $index : mixed|null = null
-
Key to fetch from DELETE data. Null returns all data.
- $xssClean : bool|null = null
-
Apply XSS filtering if true. Default is null (uses config).
Return values
mixed —DELETE data value or array of all DELETE data.
put()
Fetch an item from PUT request data.
public
put([mixed|null $index = null ][, bool|null $xssClean = null ]) : mixed
Parameters
- $index : mixed|null = null
-
Key to fetch from PUT data. Null returns all data.
- $xssClean : bool|null = null
-
Apply XSS filtering if true. Default is null (uses config).
Return values
mixed —PUT data value or array of all PUT data.