Hi.
I need several Zend_Cache objects for my app (file, memcached...), and I
don't want to instantiate and initialize it all over my app. So, there are 2
options:
- Init Zend_Cache in bootstrap and then get it all over app (in models for
ex) with:
$this->getFrontController()->getParam('bootstrap')->getResource('cache'); -
if I can do this in models at all? How do I access bootstrap resources from
outside controllers?
- Init Zend_Cache in bootstrap but store it in Zend_Registry then get it
with Zend_Registry::get('cache');
What is better/faster approach and why?
--
View this message in context:
http://www.nabble.com/Application-Resources-Access-tp25746631p25746631.html
Sent from the Zend Framework mailing list archive at Nabble.com.