How to use a database library in my own class |
[eluser]Unknown[/eluser]
Plese help me. I write my own library and my class want to use a ci database library. But when I load this library with this code : $CI =& get_instance(); $CI->load->library('database'); I have an error message : Unable to load the request class : database but when I test to load another library : example session. I can use it. Can I resolve this problem. I am a new ci user and my English skill is bad.
[eluser]Deveron[/eluser]
Hi, the answer is: there is no database library. but... you can, if you like, load the database manually with: Code: $CI->load->database(); Please take a look at the User Guides for better understanding: http://ellislab.com/codeigniter/user-gui...cting.html Cheers
|
Welcome Guest, Not a member yet? Register Sign In |