Return to Snippet

Revision: 46352
at May 17, 2011 21:36 by vitor_np


Initial Code
<?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);
    }
}

Initial URL

                                

Initial Description

                                

Initial Title
JSON Zend framework

Initial Tags

                                

Initial Language
PHP