Welcome Guest, Not a member yet? Register   Sign In
Call to a member function load() on a non-object when autoloading config files at CI3
#6

(04-03-2015, 03:01 AM)sv3tli0 Wrote: Just a note..
in __construct() you should put at 1st line

PHP Code:
parent::__construct(); 

Else you are not preloading parent constructor > https://github.com/bcit-ci/CodeIgniter/b...er.php#L66
and inside it you have some very important things Smile
All classes including config are loaded there..
You can't access it if you haven't call parent construct 1st..

Yes, you're right, that was the problem but now I'm running in a second issue cause I got a blank page and facebook stuff doesn't work
Reply


Messages In This Thread
RE: Call to a member function load() on a non-object when autoloading config files at CI3 - by reynierpm - 04-03-2015, 07:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB