Zend Developer Zone
Where the ElePHPants come to learn

Zend Developer Zone

Zend Config tree solution

Incredibly Old Content Warning!

The content you are viewing is more than three years old. It is here for archival purposes. Do not use any advice in this article.

::Jedi Hand Wave:: This is not the information you are looking for. Move along.


The best part of my favorite PHP framework, Zend framework is Zend_Config. With Zend Config you can run you web application with more power full configuration that any one can change your application setting for use.
Read more information about Zend Config at Zend framework manual for Zend Config.
But in most web application you may have many configuration file with special format such as INI, XML or PHP. Also some of configuration is for one part of your application and may you put in special folders.

*My Zend framework folder structure*
So this is my default Zend framework folder structure that you have see more configuration file.
!http://www.mhf.ir/wp-content/uploads/2010/06/myzffs.gif!

*Default solution*
In default solution you need to define a Zend Config object for each file to access file data.
But with this solution you can globally access all files in any format in each folder.

To continue reading this article read “The symphony of information technology”:http://www.mhf.ir/web/zend-config-tree-solution/.