magento Rendering Different mechanisms for disabling block output


  • 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
  • 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.