I’m working on a project using Zend Framework and required to disable view renderer for a controller. This can be done by the following calls to the controller’s by the following method:
public function foo()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
}
note: function can be public, protected or private







[...] Disable view renderer in Zend Framework [...]