JSON Zend Framework

<?php
 
class IndexController extends Zend_Controller_Action
{
 
    public function init()
    {
        /* Initialize action controller here */
    }
 
    public function indexAction()
    {
        $this->getHelper('ViewRenderer')->setNoRender(true);
        $values = array('foo' => 'bar');
        $this->getHelper('json')->sendJson($values);
    }
}
Processing your request, Please wait....

No Responses to “JSON Zend Framework”

Comments (Your Comments)

Leave a Reply

You must be logged in to post a comment.