Json problem (valums ajax uploader with zend framework)?

You can affect the response by using the response object From within your controller.

You can affect the response by using the response object. From within your controller: $content = Zend_Json::encode(array('Foo' => 'Nice', 'Bar' => 'Vice')); $this->getResponse() ->setHeader('Content-Type', 'text/html') ->setBody($content) ->sendResponse(); exit().

This does not use the sendJson() action helper, but there aren't any options for that method. Use Zend_Json::encode() to encode your data and send it yourself using this method. – Kekoa Jun 21 '09 at 21:17 Thanks Kekoa, noted and incorporated.

– karim79 Jun 21 '09 at 21:25 to output valid json code you have to change your last line to: ->setBody($content) and add: ->sendResponse(); exit(); otherwise Zend will surround the json data with your default style – user63371 Jun 25 '09 at 18:55 @axel. Klein - I've edited the answer based on your comment. Thanks, and sorry I forgot to include the sendResponse bit, I normally grab the response into a variable before outputting.

– karim79 Jun 26 '09 at 3:52.

Yet another variant echo Zend_Json::encode(array('result' => true)); exit.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions