In Zend Framework, We need to disable layout when we make an AJAX request to fetch data with the help of the following code.
$this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true);
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);