1

I have configured a Cachemanager Resource in my application.ini ... I can get this Resource from my Actions. Now I am trying to get the same Resource from a View_Helper and it's just not working! I'm getting my Zend_Cache_Manager Object ... but

$cachemanager->getCache('theresourcename');

is returning NULL...?

Any Ideas?

Best wishes, Alex

1 Answer 1

2

Try:

$front = Zend_Controller_Front::getInstance();
$bootstrap = $front->getParam('bootstrap');
$resource = $bootstrap->getResource('cacheManager');
$cache = $resource->getCache('theresourcename');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.