Welcome Guest, Not a member yet? Register   Sign In
Is it okay to use require_once for libraries which aren't CI 'compatible'?
#7

[eluser]dallen33[/eluser]
[quote author="Mauricio de Abreu Antunes" date="1330719189"][quote author="dallen33" date="1330718994"]My bad, it actually does work:
Code:
$this->load->library(array('form_validation', 'simple_html_dom'));

But to use it, my code has to look like this:
Code:
$html = file_get_html($url);

I was originally trying:
Code:
$html = $this->simple_html_dom->file_get_html($url);
[/quote]<- It's not possible because your lib does not extend CI. [/quote]Crap, that's what it was all along. Couldn't figure it out. Thanks Mauricio!


Messages In This Thread
Is it okay to use require_once for libraries which aren't CI 'compatible'? - by El Forum - 03-02-2012, 01:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB