Creating a custom JSON response object with Zend Action Helper ContextSwitch

前端 未结 2 527
暖寄归人
暖寄归人 2020-12-31 15:13

I normally append an encoded json object to the response body, however I now have a situation that warrants using the ContextSwitch action helper.

I have a Zend_Form

2条回答
  •  情深已故
    2020-12-31 15:25

    this may help : $this->_helper->json->sendJson($data); while,

    $data=array('data1'=>'val1','data2'=>'val2');

提交回复
热议问题