Latest |Kites |Pictures |Programming |Life
[filed under Programming]Zend Framework Ajax

You need to turn off the layout renderer and the view renderer:

public function busyAction()
{
    //
    // turn off the view helpers
    //
    $this->_helper->layout->disableLayout();
    $this->_helper->viewRenderer->setNoRender();
    //
    //
    //
    $tmp = array( 'test'=>'value' );
    echo Zend_Json::encode($tmp);
}

Then use Zend_Json to encode your values and output them.

For the client side I suggest you grab jQuery or prototype to make things easier.

2nd of July, 2008@9:04:10 AM
add a comment, permanent link to article

Comments

name
website
Check this if you are a human being. Thanks.

Comment


Parse error: syntax error, unexpected $end in /home/teethgrinduk/public_html/bbclone/var/access.php on line 368