Im using
$this->input->post(\'name\') ; to get a request posted to my url.Instead of post I need to access get as well.
$this->input->post(\'name\') ;
Like in normal ph
Try this if you want to post request from server
if ($this->input->server('REQUEST_METHOD') == 'POST'){} if ($this->input->server('REQUEST_METHOD') == 'GET'){}