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:
Accessing your configuration data in application.ini
December 01, 2009 @ 08:58:23

Rob Allen has a quick tip for Zend Framework users looking to get to the configuration values in their application.ini file.

Zend_Application will read the data in your application.ini and make it available from your bootstrap's getOptions() method. It then sets the bootstrap as a parameter in the front controller. Note that the top level keys are all normalised to lowercase too. You can then retrieve the options in a number of ways.

He gives examples of pulling them into a controller, an object outside the controller and an interesting conflict that using the Zend_Config component could cause.

0 comments voice your opinion now!
zendframework configuration setting tutorial


blog comments powered by Disqus

Similar Posts

Juozas Kaziukenas' Blog: Zend Framework and Doctrine. Part 2

7PHP.com: Auto Generate Properties Dynamically For Your Classes Using Magic Methods & Reflection

PHPMaster.com: An Introduction to Dependency Injection, Service Locators & Factories (Part 1)

Ibuildings Blog: Dependency Injection and Zend Framework Controllers

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 3


Community Events

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


unittest api conference introduction wordpress psr7 voicesoftheelephpant laravel5 community framework release extension development library opinion series language podcast interview laravel

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