in your index.php:
---
$configA = new Zend_Config('config-a.ini');
$configB = new Zend_Config('config-b.ini');
$configA->merge($configB);
$application = new Zend_Application(APPLICATION_ENV, configA);
$application->bootstrap()->run();
---
Cheers!
Andreas
On 11.01.2010, at 16:19, Loïc Frering wrote:
> Hi,
>
> I would like to separate my application configuration into multiple ini files. It seems that it is not possible for now as Zend_Applicator only accepts a string path to a config file, a Zend_Config object or an array of options.
>
> Is this limitation known ? Maybe I missed something... I'd particularly like to separate my navigation resource configuration which is quite verbose from the rest of the configuration.
>
> If this functionality seems pertinent, I could create an Jira entry for that :)
>
> Regards.
>
> --
> Loïc Frering
> 128, rue Marius Berliet
> 69008 Lyon
> 0 954 954 786
> 06 48 08 67 79
> loic.frering@gmail.com
没有评论:
发表评论