Hi Matthew,

thanks, well the question aimed at the constructor of Zend_Config (for
PHP arrays) and Zend_Config_Ini or Zend_Config_Xml. Both Ini and Xml
classes take a parameter $section to just take this section out of the
configuration file.

But I did some thinking and I should have done that before. When I use a
PHP array and I only want to create a Zend_Config object for my whatever
section, I simply do:

$config = new Zend_Config($configArray['whatever']);

I don't know if this is the best practice way but at least it solves the
issue and answers my question. I probably should do this thinking stuff
more often. Didn't hurt at all and even was fun ;-)

Thanks and best regards,

Ralf

Reply via email to