Welcome Guest, Not a member yet? Register   Sign In
Can't use $this->load->database() anywhere?
#1

[eluser]Unknown[/eluser]
Hi,

I'm using CI 1.7 with codecrafter to generate the scaffolding. This makes me realize the i can't use $this->load->database() anywhere, only in the constructor, otherwise no connection is created.
What could be happening? am i doing something wrong?

I think that using $this->load->database() in any function should work because the codecrafter use it a lot.

any ideas?

thanks


Messages In This Thread
Can't use $this->load->database() anywhere? - by El Forum - 04-09-2009, 04:31 PM
Can't use $this->load->database() anywhere? - by El Forum - 04-09-2009, 06:02 PM
Can't use $this->load->database() anywhere? - by El Forum - 04-09-2009, 06:12 PM
Can't use $this->load->database() anywhere? - by El Forum - 04-09-2009, 06:52 PM
Can't use $this->load->database() anywhere? - by El Forum - 04-09-2009, 07:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB