Welcome Guest, Not a member yet? Register   Sign In
[Solved] Getting simple_html_dom to work with CI?
#3

[eluser]cideveloper[/eluser]
codeigniter libraries have a specific structure as described below

Code:
class Class_name {

      function function_name(){

      }

}

There are a lot of changes that need to be made to the simple_html_dom.php file in order for it to work as a library

1) change the file name to Simple_html_dom.php (Note Capital Letter)
2) change the simple_html_dom class to Simple_html_dom (Note Capital Letter)
3) put the file_get_html function inside the class Simple_html_dom

That will work. if you need to use the other functions that are outside the Simple_html_dom class you will need to put them inside as well.


Messages In This Thread
[Solved] Getting simple_html_dom to work with CI? - by El Forum - 05-11-2009, 02:02 PM
[Solved] Getting simple_html_dom to work with CI? - by El Forum - 05-11-2009, 03:23 PM
[Solved] Getting simple_html_dom to work with CI? - by El Forum - 05-11-2009, 03:35 PM
[Solved] Getting simple_html_dom to work with CI? - by El Forum - 05-11-2009, 05:50 PM
[Solved] Getting simple_html_dom to work with CI? - by El Forum - 05-12-2009, 01:38 AM
[Solved] Getting simple_html_dom to work with CI? - by El Forum - 05-12-2009, 07:15 AM
[Solved] Getting simple_html_dom to work with CI? - by El Forum - 05-12-2009, 07:21 AM
[Solved] Getting simple_html_dom to work with CI? - by El Forum - 05-31-2009, 04:18 AM
[Solved] Getting simple_html_dom to work with CI? - by El Forum - 06-04-2009, 10:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB