Created
July 12, 2013 20:25
-
-
Save lfbittencourt/5987534 to your computer and use it in GitHub Desktop.
Snippet to disable layouts and/or views in a Zend Framework application.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Disable layouts. | |
$this->_helper->layout->disableLayout(); | |
// Disable view. | |
$this->_helper->viewRenderer->setNoRender(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment