Codeigniter Check Request is Ajax Example

Codeigniter Check Request is Ajax Example

Sometimes, we need to check request is ajax or not in codeigniter 3 application. If you want to call same method but if request is ajax then you perform different, then you can do by using $this->input object. In Codeigniter