Skip to content

Instantly share code, notes, and snippets.

@iamnodev
Created July 24, 2012 14:34
Show Gist options
  • Save iamnodev/3170265 to your computer and use it in GitHub Desktop.
Save iamnodev/3170265 to your computer and use it in GitHub Desktop.
Disable render in zend action
# [...]
# credits: Mathias Geat
# source: http://ailoo.net/2008/09/disable-layout-and-view-renderer-in-zend-framework/
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment