Disable view and layout for a controller (you can also place it in any other location, a action for example)
class IndexController extends Zend_Controller_Action
{
public function init()
{
// Disable render helper and zend Layout
$this->_helper->viewRenderer->setNoRender();
$this->_helper->layout()->disableLayout();
}
}
18. April 2010 um 12:51 Uhr
Thanks for this little sample. As most people who view this article I was looking for something to disable the render and lay out, this did the trick perfectly.
Cheers,
Roy T.