Skip to end of metadata
Go to start of metadata

Zend_Config allows a web application to store basic configuration values. If you like, you can utilize a separate staging environment for testing new development and a production environment for publishing development that has been successfully tested in the staging environment.

config.ini

In order to load the configuration values for the staging environment, a developer using Zend_Config would write:

config.php

Zend_Config also provides loaders for configuration data stored in PHP arrays and in XML-formatted text files, and developers are free to implement their own loaders for other formats where desirable.

Using Zend_Config_Xml

It is also possible to use xml for providing configuration info. Following the example above, your structure and files should look like this to achieve the same result. Note that the root node doesn't necessarily have to be called 'configdata'.

Labels:
zend_config zend_config Delete
example example Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.