[help] Unable to load the requested class: database |
[eluser]Wilianto Indrawan[/eluser]
Hello, I'm newbie with codeigniter. I try to make my own library on CI, but I get "Unable to load the requested class: database" error in my browser. Below is my code: Code: Class CI_Gettag { I'm also load the database library on autoload.php. May I use the database class on my own library. Thank You
[eluser]Wilianto Indrawan[/eluser]
problem solved http://ellislab.com/forums/viewthread/104541/#526583 Thank you.
[eluser]InsiteFX[/eluser]
CI is a CodeIgniter reserved word and you should not be using it in your own Classes!
[eluser]CroNiX[/eluser]
What @InsiteFX means is using CI_ for the prefix of your class name is a no no, not using "ci" as a property in your class. CI_ only belongs on stock core CI classes and libraries, not ones you create. It has special meaning. var $ci; is also php4 way of declaring variables. |
Welcome Guest, Not a member yet? Register Sign In |