Skip to content

Instantly share code, notes, and snippets.

@davefreiman
Last active August 29, 2015 14:07
Show Gist options
  • Save davefreiman/948edb4ab1baafaa38f4 to your computer and use it in GitHub Desktop.
Save davefreiman/948edb4ab1baafaa38f4 to your computer and use it in GitHub Desktop.
public function processRequest()
{
if (empty($this->_requestProcessors)) {
return false;
}
$content = false;
foreach ($this->_requestProcessors as $processor) {
$processor = $this->_getProcessor($processor);
if ($processor) {
$content = $processor->extractContent($content);
}
}
if ($content) {
Mage::app()->getResponse()->appendBody($content);
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment