Hi

Zend_Cache_Manager documentation is wrong. Followed the docs and made same
mistake.

http://framework.zend.com/manual/en/zend.cache.cache.manager.html


   1. $manager = new Zend_Cache_Manager;
   2.
   3. $dbCache = array <http://www.php.net/array>(
   4.     'frontend' => array <http://www.php.net/array>(
   5.         'name' => 'Core',
   6.         'options' => array <http://www.php.net/array>(
   7.             'lifetime' => 7200,
   8.             'automatic_serialization' => true
   9.         )
   10.     ),
   11.     'backend' => array <http://www.php.net/array>(
   12.         *'name' => 'Core'*, ==> Backend is Apc, File, etc
   13.         'options' => array <http://www.php.net/array>(
   14.             'cache_dir' => '/path/to/cache'
   15.         )
   16.     )
   17. );

Cheers
holo




2010/3/22 holografix . <[email protected]>

> Hi
> Thanks. I dont't know if it's a problem with Zend_Cache_Manager.
>
> inside _initTranslate()
>
>
> $this->bootstrap('cachemanager');
> $manager = $this->getResource('cachemanager');
> // Zend_Debug::dump($manager);  ==> ok returns a Zend_Cache_Manager object
>
> $cache = $manager->getCache('cache');
>
> produces a fatal error
> *Fatal error*: Uncaught exception 'Zend_Cache_Exception' with message
> 'file Zend\Cache\Backend\Core.php not found in include_path' in
> C:\wwwroot\lib\php\Zend\library\Zend\Cache.php:208 ...
>
> but echoing get_include_path() before $cache = $manager->getCache('cache')
> shows the path to the library.
> Before trying to add a cache to the translator, there were no problems so
> it's not related with paths.
>
> Cheers
> holo
>
>
> 2010/3/22 tonystamp <[email protected]>
>
>
>> If you need to access another resource in the bootstrap, you first ensure
>> that the method loading the required resource has been run, then simply
>> fetch it:
>>
>> $this->bootstrap('cachemanager');
>> $cache = $this->getResource('cachemanager');
>> --
>> View this message in context:
>> http://n4.nabble.com/Getting-resources-in-bootstrap-tp1678226p1678237.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>
>

Reply via email to