Hi list,
I'm trying to store values from a Zend_Config object into Zend_Registry.
$config = new Zend_Config_Xml(APP_DIR . '/config.xml', $curr_env);
foreach ($config as $key => $value) {
Zend_Registry::set($key, $value);
}
As you see, I'm iterating over $config object to store the values into the
registry.
Is there any plan to implement a special method (perhaps setFromArray()) to
facilitate this action? Is there any other way to store multiple values into
the
registry at once, with a single line of code?
Thank you in advance,
-AmirBehzad