Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 1.8.1
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Application
-
Labels:None
Description
Currently there is only one configuration file. It would be nice, if its possible to combine more.
An example: The prefered way is to set up the configuration under "configs/application.*". So there could be others, something like "configs/navigation.*", which would be the configuration for the navigation-resource-plugin. Or it will be the configuration for the module "navigation" and the config for the navigation-resource-plugin resist under "configs/resources/navigation.*"
One other possibility is, that a module can carry its own configuration at "modules/name/configs/bla.*". As mentioned in the project-structure-proposal [1] the modules mimic the default structure, so the "configs"-directory is included. This should be used somewhere... ![]()
What about using an array for the 'config' option:
$application = new Zend_Application( APPLICATION_ENV, array( 'config' => array ( APPLICATION_PATH . '/configs/database.ini', APPLICATION_PATH . '/configs/application.ini' ) ) );and change the setOption method in Zend_Application from
to
$application = new Zend_Application( APPLICATION_ENV, array( 'config' => array ( APPLICATION_PATH . '/configs/database.ini', APPLICATION_PATH . '/configs/application.ini' ) ) );