Welcome Guest, Not a member yet? Register   Sign In
Classes in CodeIngniter
#1

[eluser]ronn[/eluser]
I would like to create a class and place it in the CI library of my project. I have created a basic class and placed it in the libraries folder, but I'm unable to make it work in my controller. Does anyone know a tutorial covering this, or can offer any help?
#2

[eluser]nelson.wells[/eluser]
http://ellislab.com/codeigniter/user-gui...aries.html

Read that. In addition, post your code and I can try to help.
#3

[eluser]mikelbring[/eluser]
You probably need to put $CI =& get_instance(); in your class if you need to use anything from CI. But you still should be able to load it in the controller with out that.




Theme © iAndrew 2016 - Forum software by © MyBB