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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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