Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.1.3
-
Fix Version/s: 0.2.0
-
Component/s: Zend_Config
-
Labels:None
Description
These methods will allow for easy retrieval of the way that the Zend_Config instance was loaded without having to store it outside the class. This is particularly useful where a Zend_Config object instance is stored and fetched using an application registry.
getSectionName() will return either a string or an array of string depending on how the Zend_Config was loaded. If it was loaded using a single section name, then getSectionName() will return a string. If it was loaded using mutliple section names or null (all sections) then it will return an array.
areAllSectionsLoaded() will return a boolean to indicate if the entire ini file was loaded.
Issue Links
| This issue depends on: | ||||
| ZF-413 | Allow loading of multiple sections |
|
|
|
Best to do this one after multiple sections are loadable!