Marco Pivetta wrote
>
> Hey, did you already read through
> http://packages.zendframework.com/docs/latest/manual/en/zend.cache.html ?
> That is not very complete, but should be up to date :)
> Marco Pivetta
>
> http://twitter.com/Ocramius
>
> http://marco-pivetta.com
>
>
>
> On 21 April 2012 16:14, cmple [via Zend Framework Community] <
> [email protected]> wrote:
>
>> anyone?
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://zend-framework-community.634137.n4.nabble.com/ZF2-Factory-method-and-Zend-Di-tp4257197p4576490.html
>> To unsubscribe from Zend Framework Community, click
>> here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4>
>> .
>> NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
Yeah, I've read it before and I had it working,
but after taking the latest zf2 update it looks like the plugin
functionality has stopped working
Try pasting the following code in Module initializeView() function:
$cache = StorageFactory::factory(array(
'adapter' => array(
'name' => 'Filesystem',
'options' => array(
'cacheDir' => __DIR__ . '/../../data/cache',
),
),
'plugins' => array(*'serializer'*),
));
$cache->setItem('testing-array', *array('hello' => 'test')*);
$array = $cache->getItem('testing-array');
print_r($array);
this outputs a string 'test' instead of an array array('hello' => 'test')
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZF2-Factory-method-and-Zend-Di-tp4257197p4578998.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]