$response->setContent(\Zend\
Json\Json::decode($events,Zend\Json\Json::TYPE_ARRAY)); but this error show

'Calendar\Controller\Zend\Json\Json' not found



On 8 April 2014 15:11, Muhammad Arif <[email protected]> wrote:

> $response->setContent(\Zend\Json\Json::decode($events,Zend\Json\Json::TYPE_ARRAY));
> but this error show
>
> 'Calendar\Controller\Zend\Json\Json'
>
>
>
> On 8 April 2014 14:21, Nima Sadjadi <[email protected]> wrote:
>
>> I am on phone and cannot copy the code here. Assuming you are using
>> zend/json, see this:
>> http://framework.zend.com/manual/2.3/en/modules/zend.json.objects.html
>> With this decoding you'll get it decoded as object, pass TYPE_ARRAY as
>> second param to get it as an array.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "doctrine-user" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/doctrine-user/8fvWXCbkdWk/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/doctrine-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to