A quick tip when you need to disable layout and/or view rendering, simply add in your controller

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.