2010年2月16日星期二

Re: [fw-mvc] zend_registry or zend_cache_manager

> Really depends. Zend_Cache_Manager was designed as a "Lazy Loader". You
> set your configuration for caches on it, and instantiate them later
> using Zend_Cache_Manager::getCache() if needed. Otherwise they are not
> instantiated. Using it as a Registry (which it is of sorts) is also
> fine. You can retrieve it from any Controller using:
>
> $this->_helper->getHelper('Cache')->getManager()->getCache('myCache');

Wouldn't this be nice to have the same concept applied to the newly
introduced

[x] multidb

resource?


Best regards,

Andreas

没有评论: