+1, I kinda always thought thats what the Zend_Config class should do. That architecture also lends itself to the 'simplicity' of use in the Framework.

ralph

Matthew Ratzloff wrote:
On Thu, March 29, 2007 11:57 am, Rob Allen wrote:
My initial instinct that this would add too much complexity to and
exceed the responsibily of Zend_Config_Ini which has a one-to-one
relationship with an ini file.

The obvious solutions are to use some userland code to load each one
separately and then merge. Alternatively, if there there is a lot of
requirement for this sort of loading of configuration files, then maybe
a Zend_Config_Loader class would make sense?

A better solution would be to rename Zend_Config to Zend_Config_Array,
which is a better description of what it does.  Then make Zend_Config a
top-level configuration loading class that auto-detects the appropriate
adapter for any given file based on extension, loads all files in a given
set of directories, and merges them as necessary.

-Matt



Reply via email to