Codeigniter controller will not work if we update your xampp version to v3.2.2. Or in other case if you upgrade the php version to 5.6+
in some cases, in the autoload.php in the config folder
$autoload[‘libraries’] = array(‘form_validation’,’session’,’database’);
if we remove database from the array codeigniter controller will work.
So solution to work this controller in the codeigniter is change dbdriver from mysql to mysqli
$db[‘default’][‘dbdriver’] = ‘mysqli’;