ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in codeigniter

Danish Danish picture Danish Danish · Feb 17, 2020 · Viewed 11.1k times · Source

I'm using CI 3.1.10.In the index.php file i use development enviroment.

MY controller


When i try to access the test class then it show me this error

This is the image that show me the warning.

Screenshot of the error is attached

Answer

Vikas bhatiya picture Vikas bhatiya · Sep 17, 2020

ob_start();

on the first line of index.php in root directory. This works.