beberlei / yadif

Yet Another (PHP) Dependency Injection Framework
Other
37 stars 1 forks source link

Problem with XML config files and :name syntax for non-object parameters #6

Open kristianawright opened 14 years ago

kristianawright commented 14 years ago

In the readme, the section Zend_Application Integration references passing an instance of Zend_Config_Xml to Yadif_Container. I've not been able to get the :name syntax for non-object parameters working with Zend_Config_Xml due to simplexml_load_file() rejecting the colons. Can you please post an example of your objects.xml using the :name syntax so that I can see where my markup is incorrect? Thank you.

kristianawright commented 14 years ago

I was able to bypass the colon issue by changing CHAR_ARGUMENT in Yadif_Container to an underscore, but I'm still struggling with the markup structure for the XML file. Any suggestions?

kristianawright commented 14 years ago

I successfully used Zend_Config_Writer to create an INI config for Yadif_Container. I never got the XML config to work.