"Joó Ádám" <[EMAIL PROTECTED]> napisał(a): > Although Michał fixed the issue that prevented to omit a root level > from Zend_Config_Ini, addConfig() still requires a segment to be > specified. However it doesn't make sense to have a segment for routes > if you have a config file only for them. Should I post an issue in > Jira to fix this?
Let me chime-in here - I'll provide some replication details. We have a routes-root.ini file in the tests directory: http://framework.zend.com/svn/framework/trunk/tests/Zend/Controller/_files/routes-root.ini Which is loaded by this code: $config = new Zend_Config_Ini($file, 'routes'); But if you remove a routes section from this ini file and try to load whole file: $config = new Zend_Config_Ini($file); warning is displayed and config items probably aren't loaded: Warning: Invalid argument supplied for foreach() in /home/martel/libs/ZendFramework/library/Zend/Config/Ini.php on line 175 I'm attaching both files which are needed to reproduce. I guess you can create a Jira issue for this, Adam. > Ádám -- Michał -- Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] | http://aie.pl/martel.asc =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "Idleness is not doing nothing. Idleness is being free to do anything." -- Floyd Dell
routes.ini
Description: Binary data
load-config.php
Description: application/httpd-php
