Is it okay to use require_once for libraries which aren't CI 'compatible'? |
[eluser]Matalina[/eluser]
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. |
Welcome Guest, Not a member yet? Register Sign In |