• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.