hmmm... good point, I was using that in a unit test and it was fine.

Not sure if this is the best way, but you can grab the options in a controller like so:

$this->getInvokeArg('bootstrap')->getOptions()



On 1-Jun-09, at 12:49 PM, dmitrybelyakov wrote:



Jonathan Lebensold wrote:

$this->application->getOptions()


Hi, Jonathan.

Thank you for your reply. But what does $this refer to in your example? In
what context should I run it - ActionController? Front controller? I
actually need that in Models.
I tried that, and also tried calling it statically like
Zend_Application::getOptions(); but with no success.

Dmitry.

--
View this message in context: 
http://www.nabble.com/How-to-get-Config-options--tp23817687p23818120.html
Sent from the Zend Framework mailing list archive at Nabble.com.


Reply via email to