Skip to content

Instantly share code, notes, and snippets.

@xcommerce-gists
Last active January 1, 2016 06:39
Show Gist options
  • Save xcommerce-gists/8106123 to your computer and use it in GitHub Desktop.
Save xcommerce-gists/8106123 to your computer and use it in GitHub Desktop.
Magento simple Hello World extension: Index action controller
/**
* Magento simple Hello World extension: Index action controller
*
* Action controller that loads and renders the layout
* provided for documentation purposes in the
* Magento 1.x Extension Developer's Guide
*
* @copyright Copyright (c) 2013 eBay Inc. (http://www.magentocommerce.com)
*/
<?php
class Tutorials_HelloWorld_IndexController extends Mage_Core_Controller_Front_Action
{
public function indexAction()
{
$this->loadLayout();
$this->renderLayout();
}
public function helloWorldAction()
// Loads and renders the layout, helloworld.phtml
{
$this->loadLayout();
$this->renderLayout();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment