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

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -