Skip to content

Instantly share code, notes, and snippets.

@janpapenbrock
Created December 18, 2014 13:16
Show Gist options
  • Save janpapenbrock/8517c989d2df8799e043 to your computer and use it in GitHub Desktop.
Save janpapenbrock/8517c989d2df8799e043 to your computer and use it in GitHub Desktop.
Magento Controller only displaying profiling information of Magento initialization
public function indexAction()
{
$html = $this->getLayout()
->createBlock('core/profiler')
->toHtml();
$this->getResponse()->setBody($html);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment