[eluser]neomech[/eluser]
Hi,
I'm trying to work with an xml file that I created. I was using simplexml_load_file (I've got PHP 5 installed) and was getting an error so I thought I'd use the CI load library functions.
If I try this in my controller:
Code:
xml=$this->load->file('../xml/filter.xml',TRUE);
I get an error: "Unable to load the requested file: filter.xml"
If I try this instead:
Code:
$xml=$this->load->view('../xml/filter.xml','',TRUE);
Everything seems to work.
Can anyone explain why either the simplexml call or the CI load->file call aren't working? It seems like the other two methods are looking for me to identify the directory differently.
If it matters, my directory structure is:
-application
--model
--view
--controller
--xml
-library
--system
-public_html
--images
--js
--css
I'm using the .htaccess file from the CI wiki (Elliot Haughin's)