14-11-2009

Zend Framework Disable layout and viewRenderer in controller

To disable the layout and the viewrenderer on the fly inside a controller you can use the following lines :
$this->_helper->layout()->disableLayout();
 
$this->_helper->viewRenderer->setNoRender(true);
 

Comments:

Your comment:

»

 

[x]