And logs ;). Though I think there is (or was) a Zend_Log_Manager style proposal somewhere...
Pádraic Brady
http://blog.astrumfutura.com
http://www.survivethedeepend.com
OpenID Europe Foundation Irish Representative
From: Andreas Möller <localheinz@l8m.de>
To: Zend Framework MVC <fw-mvc@lists.zend.com>
Sent: Tue, February 16, 2010 5:11:11 PM
Subject: 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
http://blog.astrumfutura.com
http://www.survivethedeepend.com
OpenID Europe Foundation Irish Representative
From: Andreas Möller <localheinz@l8m.de>
To: Zend Framework MVC <fw-mvc@lists.zend.com>
Sent: Tue, February 16, 2010 5:11:11 PM
Subject: 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
没有评论:
发表评论