News Feed
Sections




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

Rob Allen's Blog:
Local config files and Zend_Application
November 29, 2010 @ 10:50:14

Rob Allen has a new post today showing you how to load in your own local configuration files into a Zend_Application Zend Framework app.

A friend of mine recently had a requirement where she wanted to have two config files loaded into Zend_Application, so that the specific settings for the server were not stored in the version control system. Hence she has two config files: application.ini and local.ini where local.ini is different on each server. The easiest way to approach this problem is to load the two files within index.php, merge them and then pass the merged config file to Zend_Application.

He includes the code to handle the import - pulling in both configuration files with Zend_Config and merging them with a "merge" call and setting their access back with a "setReadOnly".

0 comments voice your opinion now!
zendframework zendapplication configuration file zendconfig


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: Setting up your Zend_Test test suites

ZendCasts.com: Ajaxify Your Zend_Form Validation with jQuery

Mastering Zend Framework: Gary Hockinís Maximising Zend Framework 2 Performance Talk (Review)

Zend Developer Zone: Zend Framework 1.0.0 RC1 released

Ibuildings Blog: Zend_Paginator: First Impressions


Community Events





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


testing configure series interview code install release threedevsandamaybe framework laravel opinion developer list community podcast unittest introduction refactor wordpress language

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