Simplest method from anywhere:

Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('cachemanager');

It's downfall is it adds a dependency on a singleton, but without knowing how 
your model works it's difficult to suggest a better alternative without the 
singleton.

 Pádraic Brady

http://blog.astrumfutura.com
http://www.survivethedeepend.com
OpenID Europe Foundation Irish Representative





________________________________
From: Marko78 <[email protected]>
To: [email protected]
Sent: Fri, February 12, 2010 12:38:11 PM
Subject: [fw-general] Hot to get cacheManager resource from anywhere?


Hi,

I have set up cacheManager in my application.ini and I want to get it from
my Model.

How can I get it?

br, Marko
-- 
View this message in context: 
http://n4.nabble.com/Hot-to-get-cacheManager-resource-from-anywhere-tp1478479p1478479.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to