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
#4

(This post was last modified: 04-03-2015, 03:03 AM by sv3tli0.)

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..
Best VPS Hosting : Digital Ocean
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB