Zend Framework: Disabling Layout & View Renderer
One of the most common things I do when working with the Zend Framework is disabling the view and/or layout inside a controller (or for a specific action). I always forget how to do this.
All our controllers extend Gravitywell_Controller_Action which inside provides us with a few helper functions. Two of these are disableView() and disableLayout(). Example can be seen below: