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

[eluser]Mauricio de Abreu Antunes[/eluser]
[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.


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:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB