ZF-9191: allow recursive loading of config file

Issue Type: Improvement Created: 2010-02-16T09:16:24.000+0000 Last Updated: 2012-10-18T09:24:07.000+0000 Status: Open Fix version(s): Reporter: Gildas de Cadoudal ( Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Application

Related issues: Attachments:


With Zend_Application you can load additional configuration files via

<pre class="highlight">
config.subconfig = "subconfig.ini"

Currently it is not possible to load a sub sub configuration file. For example:

<pre class="highlight">
config.subsubconfig = "subsubconfig.ini"

configuration file subsubconfig.ini will not be charged.

It would be interesting to implement this recursive loading.


Posted by Marcus Kliche (mkliche) on 2012-10-18T09:24:07.000+0000

I have quick workaround for this. bq. $application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' );

// Workaround for 2-level recursive including of config files $application->setOptions($application->getOptions());

$application->bootstrap() ->run(); It includes at least subsubconfig file, but not subsubsubconfig files... you will have to call $application->setOptions($application->getOptions()); on time for each sub config file level greater than one.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.