CodeIgniter Forums
Does folder exist - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Does folder exist (/showthread.php?tid=74213)

Pages: 1 2


RE: Does folder exist - christaliise - 08-29-2019

(08-29-2019, 03:09 AM)InsiteFX Wrote: Are you auto loading the session library also?

PHP Code:
// Load the messages library
$autoload['libraries'] = array(
    'session',
    'messages',
); 

You need to be running the session library because that is what the message library is using.

I loaded "library" not "libraries" and that opened. I now need to see if the message works coz I suspect "file_exists" and "die" will have limitations particularly when continuing the process, however I'll look into that later to see what works.

This is what I put into the Controller and it opened, and I didn't touch the autoload.php.

PHP Code:
$this->load->library('session''messages');