Zend no render

23.Jul.2010

In order to prevent page to render in Zend Framework use following snippet.

Zend no render:

1
$this->getHelper('viewRenderer')->setNoRender();

In order to disable layout use both lines as shown in snippet below:

1
2
$this->getHelper('viewRenderer')->setNoRender();
$this->_helper->layout->disableLayout();