php - Cache_Manager in View_Helper -


i have configured cachemanager resource in application.ini ... can resource actions. trying same resource view_helper , it's not working! i'm getting zend_cache_manager object ... but

$cachemanager->getcache('theresourcename'); 

is returning null...?

any ideas?

best wishes, alex

try:

$front = zend_controller_front::getinstance(); $bootstrap = $front->getparam('bootstrap'); $resource = $bootstrap->getresource('cachemanager'); $cache = $resource->getcache('theresourcename'); 

Comments

Popular posts from this blog

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -