Rob Allen's Blog: Accessing your configuration data in applicati...

Courtesy PHPDeveloper.org  Tue, 12/01/2009 - 08:58

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.

...

 

More related items

Mike Willbanks' Blog: Integrating Gearman Into Zend...
In this new post to his blog Mike Willbanks shows you how you can integrate the Gearman tool (for automating multiple workers to do jobs behind the scenes) into a Zend Framework application,...

Rob Allen's Blog: Unit testing controller actions...
Rob Allen has a new post for all of the unit test fans out there wanting to test their Zend Framework controllers. He show how to make it worlds easier with the help of...

Cal Evans' Blog: Quickie Zend Framework Bootstrap Note
Cal Evans has posted a Zend Framework quickie for working with the bootstrap in your application. I've been teaching a Zend Framework class this week and my students have been throwing all...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com