Welcome Guest, Not a member yet? Register   Sign In
Custom library config file
#6

(12-30-2015, 07:25 PM)edo Wrote: mwhitney,

Thank you for responding.

The class constructor initializes some instance vars, so I have to instantiate it.

Cheers.

When you call $this->load->library('LibAPI'), the loader instantiates the class and assigns the instance to $this->libapi. You should either use the loader and use the instance bound to $this->libapi, or you should not use the loader and instantiate it yourself. You're trying to do both, which is one of the potential causes of at least some of your problems.
Reply


Messages In This Thread
Custom library config file - by edo - 12-29-2015, 09:59 PM
RE: Custom library config file - by wolfgang1983 - 12-29-2015, 10:58 PM
RE: Custom library config file - by edo - 12-30-2015, 06:53 PM
RE: Custom library config file - by mwhitney - 12-30-2015, 09:00 AM
RE: Custom library config file - by edo - 12-30-2015, 07:25 PM
RE: Custom library config file - by mwhitney - 12-31-2015, 10:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB