News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Muhammad Hussein Fattahizadeh's Blog:
Zend Config tree solution
June 22, 2010 @ 08:42:58

In a new post to his blog Muhammad Hussein Fattahizadeh talks about defining a system that's a bit more handy than the usual one configuration file to one Zend_Config object relationship most projects use. His alternative uses a class to load multiple config files all at once.

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. [...] 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.

He includes the code for his class that allows you to start with a base folder and search through it to find ini, xml and php files with configuration information inside. There's also a snippet of code showing how to use it and pull configuration objects from the data it fetches.

0 comments voice your opinion now!
zendconfig configuration zendframework tutorial


blog comments powered by Disqus

Similar Posts

Perplexed Labs Blog: PHP Forking to Concurrency with pcntl_fork()

Matthew Weir O'Phinney's Blog: Zend_Form Webinar Wednesday

Cal Evans' Blog: I called Zend_Json::encode(), so WTH are all my properties?

WeberDev.com: PHP 101 (part 11) - Sinfully Simple (SimpleXML)

NETTUTS.com: How to Read an RSS Feed with PHP - Screencast


Community Events





Don't see your event here?
Let us know!


community framework podcast introduction configure series composer conference tool release voicesoftheelephpant interview symfony api list version opinion laravel language unittest

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework