• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it okay to use require_once for libraries which aren't CI 'compatible'?

Libraries must be classes in a specific form: http://ellislab.com/codeigniter/user-gui...aries.html

Helpers on the other hand are not in a class and can just be functions.

Libraries do not have to extend core classes.

Simple_html_dom is not a class it's a bunch of functions, because it's not a class it's basically a helper which means it's called with out the scopes. I amend that. It contains classes but a library can be only a class.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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