Skip to content

Instantly share code, notes, and snippets.

@mklooss
Last active December 10, 2015 23:39
Show Gist options
  • Select an option

  • Save mklooss/4511338 to your computer and use it in GitHub Desktop.

Select an option

Save mklooss/4511338 to your computer and use it in GitHub Desktop.
Magento - controller->loadlayout() without Default
class SampleController
extends Mage_Core_Controller_Front_Action
{
public function indexAction()
{
$this->loadLayout($this->getFullActionName());
$this->renderLayout();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment