Php 在视图\u帮助程序中缓存\u管理器
我已在application.ini中配置了Cachemanager资源。。。我可以从我的行动中获得此资源。现在,我正试图从View_助手处获取相同的资源,但它不起作用!我正在获取Zend_缓存管理器对象。。。但是Php 在视图\u帮助程序中缓存\u管理器,php,zend-framework,Php,Zend Framework,我已在application.ini中配置了Cachemanager资源。。。我可以从我的行动中获得此资源。现在,我正试图从View_助手处获取相同的资源,但它不起作用!我正在获取Zend_缓存管理器对象。。。但是 $cachemanager->getCache('theresourcename'); 正在返回NULL 有什么想法吗 最好的祝愿,亚历克斯试试: $front = Zend_Controller_Front::getInstance(); $bootstrap = $fro
$cachemanager->getCache('theresourcename');
正在返回NULL
有什么想法吗
最好的祝愿,亚历克斯试试:
$front = Zend_Controller_Front::getInstance();
$bootstrap = $front->getParam('bootstrap');
$resource = $bootstrap->getResource('cacheManager');
$cache = $resource->getCache('theresourcename');