[Solved] Using $.post, $.ajax or AJAX properly in CodeIgniter to call a PHP script
Yes, you will need to put your file inside the libraries folder(if the class is separate from codeigniter or is shared among many controllers, if not a Model would suffice), then create a controller for it. class Ajax_Controller extends CI_Controller { public $statusCode = 200; public $response = array(); public function __construct() { parent::__construct(); if(!$this->is_ajax_request()){ … Read more