How do I check if the request is made via AJAX in CodeIgniter?

前端 未结 7 2000
余生分开走
余生分开走 2020-11-28 08:29

How do I check if the request is an AJAX? I am using CodeIgniter. I have a link that when it clicked, it\'ll open the pop-up dialog window this is done through ajax it reque

相关标签:
7条回答
  • 2020-11-28 09:19

    As of Codeigniter 2.0 it is prefered to use $this->input->is_ajax_request()

    0 讨论(0)
提交回复
热议问题