fopen() can find files in the include path, so fopen() a file, fread() the
contents into a variable then pass that to the constructor of
Zend_Config_Xml.

    -- Mon


On Tue, Nov 23, 2010 at 2:41 AM, benoit <[email protected]> wrote:

>
> Hi all,
>
> I used the Zend_Loader for testing the validity of an xml configuration
> file.
> So if the Zend_Loader returns to me true, I tried to load this xml file
> with
> Zend_Config_Xml.
> I pass to Zend_Config_Xml the path tested, and I got an error, the
> simplexml_load_file() can't load my file.
> Why ?
> I know that the Zend_Loader search into the include_path variable if the
> file is accessible, but simplexml_load_file() didn't ?
> So I am blocked, because I can't retrieve the path tested by the
> Zend_Loader, or because the Zend_Config_Xml don't test the same path as the
> loader.
> Did I make a mistake in my way to test this file ?
> I want to use the Zend_Loader for testing the file validity.
>
> Thanks for help.
>
> Benoit.
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Zend-Loader-isReadable-need-to-get-the-path-tested-tp3054202p3054202.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>

Reply via email to