Hi all.
I'm use Zend_Config in my projects, it's very simple and useful thing
(thanks, Rob!).
But there is problem with using iteration. Here is code:
file 'config.php':
---
$config['production'] = array(
'smarty' => array(
'debugging' => false,
'force_compile' => false,
'config_dir' => '../application/configs',
'template_dir' => '../views',
'compile_dir' => '../tmp/templates_c',
'plugins_dir' => '../library/Smarty/plugins',
'caching' => false,
'compile_check' => true)
);
---
file 'index.php':
---
$config = new Zend_Config_Array('app/config.php', 'production');
foreach ($config->smarty as $name => $val) {
echo $name, "<br>";
$smarty->$name = $val;
}
---
displays only 'debugging', i.e. if next value is false, the iteration
process will stop.
Is this possible to correct it?
Best regards,
Irina Khmelinina