ZF-6719: Allow multiple configs
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... ;)
Comments
Posted by Christoph Ziegenberg (ziegenberg) on 2009-06-04T01:30:55.000+0000
What about using an array for the 'config' option:
and change the setOption method in Zend_Application from
to
Posted by Jon Whitcraft (sidhighwind) on 2009-11-19T14:37:27.000+0000
Attached is my proposed patch, if this is accepted it would be only to the trunk as another change that was made with ZF-6811.
Posted by Jon Whitcraft (sidhighwind) on 2009-11-20T09:40:38.000+0000
This has been fixed and will be part of 1.10 as ZF-6811 was put into place before and was flaged for 1.10 since it introduces a BC break.