A quick tip when you need to disable layout and/or view rendering, simply add in your controller
1 2 3 4 5 |
public function preDispatch() { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); } |
Hope that can save you some time trying to find how in the documentation.