I downloaded the last version of CodeIgniter and I tried to run a simple app. The code works perfectly without database, but when I added this
$autoload['libraries'] = array('database');
the page went to blank.
I looked at the logs files but I didn't find anything, I check differents tutorial, but my database.php file looks correctly configured. I removed it from the array.
$autoload['libraries'] = array('');
and added to the controller this:
$this->load->library('database');
Then, this error appeared
An Error was encountered
Unable to load the requested class: database
What I do?
databasein a CodeIgniter application. Is this an XY Problem? Are you actually intending to access the database from a non-Model layer? More context might help to clarify the actual problem.