Example
- If the response has already been created and set on the response
object outside the regular rendering process (e.g., in an observer),
the 'no-renderLayout' flag can be set on the action controller using
Mage::app()->getFrontController()->getAction()->setFlag('','no-renderLayout');
- This prevents
renderLayout()
from processing the output blocks.
- The same can be achieved by calling setNoRender(true) on the front
controller:
Mage::app()->getFrontController()->setNoRender(true);
- Setting the
isDispatched()
flag on the response object might be more
efficient to achieve a similar effect.