Question and answer is powered by AnsPress.io
I am developed a web page and I am using PHP codeigniter framework. Here I want to pass JSON data from controller page to the JavaScript function. How can I do it useing header(‘content-type application/json’) in codeigniter.