In Zend Framework
you can get a reference to the object in Zend_Cache
(created in bootstrap method __initCache()
) from within the model, passing a reference to it in the constructor? For example, inside the controller — easy:
$bootstrap = $this->getInvokeArg( 'bootstrap' ); $cache = $bootstrap->getResource( 'Cache' );
PS: the variant with Zend_Registry does not offer.